foo.cc: In function 'int main()':
foo.cc:11:4: error: break statement not within loop or switch
11 | break;
| ^~~~~
foo.cc:13:3: error: case label '8' not within a switch statement
13 | case 8:
| ^~~~
foo.cc:15:4: error: break statement not within loop or switch
15 | break;
| ^~~~~
foo.cc:17:3: error: case label '7' not within a switch statement
17 | case 7:
| ^~~~
foo.cc:19:4: error: break statement not within loop or switch
19 | break;
| ^~~~~
foo.cc:21:3: error: case label '6' not within a switch statement
21 | case 6:
| ^~~~
foo.cc:23:4: error: break statement not within loop or switch
23 | break;
| ^~~~~
foo.cc:24:3: error: case label not within a switch statement
24 | default:
| ^~~~~~~
[Hydro](https://hydro.ac)提供评测服务