记录详情

Compile Error

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)提供评测服务

信息

递交者
类型
递交
题目
P1344 1A MEX
语言
C++
递交时间
2022-09-26 18:43:20
评测时间
2022-09-26 18:43:20
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes