foo.cc:1:20: warning: extra tokens at end of #include directive
1 | #include <iostream>;
| ^
foo.cc: In function 'int main()':
foo.cc:13:8: error: 'i' was not declared in this scope
13 | for(i=0;i<n;i++)
| ^
foo.cc:15:16: error: 'j' was not declared in this scope
15 | for(j=i+1;j<n;j++)
| ^
foo.cc:18:26: error: expected ';' before '{' token
18 | cout<<a{i}<<;
| ^
| ;
foo.cc:17:19: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
17 | for(j=i+1;j<n;i++)
| ^~~
foo.cc:18:29: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
18 | cout<<a{i}<<;
| ^~
foo.cc:18:29: error: expected primary-expression before '<<' token
foo.cc:18:31: error: expected primary-expression before ';' token
18 | cout<<a{i}<<;
| ^
foo.cc:23:33: error: expected primary-expression before ';' token
23 | cout<<a[i]<<;
| ^
foo.cc:26:13: error: expected '}' at end of input
26 | }
| ^
foo.cc:14:4: note: to match this '{'
14 | {
| ^
foo.cc:26:13: error: expected '}' at end of input
26 | }
| ^
foo.cc:5:1: note: to match this '{'
5 | {
| ^
[Hydro](https://hydro.ac)提供评测服务