foo.cc: In function 'int main()':
foo.cc:7:8: error: expected '(' before numeric constant
7 | while 1;
| ^
| (
foo.cc:7:9: error: expected ')' before ';' token
7 | while 1;
| ~^
| )
foo.cc:7:2: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
7 | while 1;
| ^~~~~
foo.cc:8:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while'
8 | {
| ^
foo.cc:13:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
13 | if(a=1)
| ~^~
foo.cc:14:4: error: break statement not within loop or switch
14 | break;
| ^~~~~
[Hydro](https://hydro.ac)提供评测服务