foo.cc: In function 'int main()':
foo.cc:10:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
10 | for (int i = 0; i < n; i++)
| ^~~
foo.cc:12:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
12 | int flag = 0;
| ^~~
foo.cc:17:29: error: invalid types 'int[int]' for array subscript
17 | if(a[j] == i)
| ^
foo.cc:23:28: error: 'q' was not declared in this scope
23 | if(flag == q)
| ^
foo.cc:26:25: error: return-statement with no value, in function returning 'int' [-fpermissive]
26 | return;
| ^~~~~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务