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