Main.cc: In function ‘int main()’:
Main.cc:4:14: error: expected initializer before ‘==’ token
int n,cnt==0;
^~
Main.cc:15:13: error: ‘cnt’ was not declared in this scope
cnt+=1
^~~
Main.cc:15:13: note: suggested alternative: ‘int’
cnt+=1
^~~
int