记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:21:10: error: expected unqualified-id before numeric constant
   21 |  for(int 0;i<N;i++)
      |          ^
foo.cc:21:9: error: expected ';' before numeric constant
   21 |  for(int 0;i<N;i++)
      |         ^~
      |         ;
foo.cc:21:12: error: 'i' was not declared in this scope
   21 |  for(int 0;i<N;i++)
      |            ^
foo.cc:21:15: error: expected ')' before ';' token
   21 |  for(int 0;i<N;i++)
      |     ~         ^
foo.cc:21:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
   21 |  for(int 0;i<N;i++)
      |  ^~~
foo.cc:21:16: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
   21 |  for(int 0;i<N;i++)
      |                ^
foo.cc:21:16: error: 'i' was not declared in this scope
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
题目
P1344 1A MEX
语言
C++
递交时间
2022-04-01 22:23:27
评测时间
2022-04-01 22:23:27
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes