Compile Error

foo.cc: In function 'int main()':
foo.cc:6:10: error: expected unqualified-id before ';' token
    6 |  int x,y,;
      |          ^
foo.cc:9:19: error: expected ')' before ';' token
    9 |   for(y=0;y<(100-x;);y++)
      |             ~     ^
      |                   )
foo.cc:9:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
    9 |   for(y=0;y<(100-x;);y++)
      |   ^~~
foo.cc:9:22: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
    9 |   for(y=0;y<(100-x;);y++)
      |                      ^
foo.cc:9:25: error: expected ';' before ')' token
    9 |   for(y=0;y<(100-x;);y++)
      |                         ^
      |                         ;
foo.cc:6:6: warning: unused variable 'x' [-Wunused-variable]
    6 |  int x,y,;
      |      ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1051 百元买百鱼
语言
C++
递交时间
2021-12-18 10:08:14
评测时间
2021-12-18 10:08:14
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes