foo.cc: In function 'int main()':
foo.cc:9:8: error: 'a' was not declared in this scope
9 | cin>>a[i];
| ^
foo.cc:13:10: error: expected unqualified-id before numeric constant
13 | for(int 1;i<=n;i++)
| ^
foo.cc:13:9: error: expected ';' before numeric constant
13 | for(int 1;i<=n;i++)
| ^~
| ;
foo.cc:13:12: error: 'i' was not declared in this scope
13 | for(int 1;i<=n;i++)
| ^
foo.cc:13:16: error: expected ')' before ';' token
13 | for(int 1;i<=n;i++)
| ~ ^
| )
foo.cc:13:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
13 | for(int 1;i<=n;i++)
| ^~~
foo.cc:13:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
13 | for(int 1;i<=n;i++)
| ^
foo.cc:13:17: error: 'i' was not declared in this scope
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务