/in/foo.cc: In function 'int main()':
/in/foo.cc:6:9: error: 'cin' was not declared in this scope
6 | cin>>n>>endl;
| ^~~
/in/foo.cc:6:17: error: 'endl' was not declared in this scope
6 | cin>>n>>endl;
| ^~~~
/in/foo.cc:7:13: error: 'inti' was not declared in this scope; did you mean 'int'?
7 | for(inti==1;i<=n;i++)
| ^~~~
| int
/in/foo.cc:7:21: error: 'i' was not declared in this scope
7 | for(inti==1;i<=n;i++)
| ^
/in/foo.cc:7:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
7 | for(inti==1;i<=n;i++)
| ^~~
/in/foo.cc:9:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
9 | b=b+a;
| ^
/in/foo.cc:10:9: error: 'cout' was not declared in this scope
10 | cout<<b;
| ^~~~