I have this code (I put just a part of it):
class TMTrackAnalyzer : public edm::EDAnalyzer {
public:
# declare public stuff here
private:
# declare private stuff here
for(int i=1;i<=10;i++){
cout<<i;
}
};
And I get this error:
expected unqualified-id before 'for'
for(int i=1;i<=10;i++){
I checked that all the brackets are correctly closed before and after the for
loop.
What did I do wrong? Thank you!