/in/foo.cc: In function 'int main()':
/in/foo.cc:11:16: error: 'cnt' was not declared in this scope
if(i%10==x) cnt++;
^~~
/in/foo.cc:11:16: note: suggested alternative: 'int'
if(i%10==x) cnt++;
^~~
int
/in/foo.cc:8:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(i=1;i<=n;i++)
^~~
/in/foo.cc:14:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
cout<<cnt;
^~~~
/in/foo.cc:14:9: error: 'cnt' was not declared in this scope
cout<<cnt;
^~~
/in/foo.cc:14:9: note: suggested alternative: 'int'
cout<<cnt;
^~~
int