foo.cc: In function 'int main()':
foo.cc:14:20: error: expected primary-expression before '%' token
14 | scanf("%d",%n);
| ^
foo.cc:18:24: error: expected '(' before 'opt'
18 | switch opt:
| ^~~
| (
foo.cc:20:17: error: case label '2' not within a switch statement
20 | case 2:scanf("%d",&v),add = v;break;
| ^~~~
foo.cc:21:17: error: case label '3' not within a switch statement
21 | case 3:scanf("%d",&v),que = v;break;
| ^~~~
foo.cc:22:17: error: case label '4' not within a switch statement
22 | case 4:scanf("%d",&v),cover = v;break;
| ^~~~
foo.cc:23:17: error: case label '5' not within a switch statement
23 | case 5:scanf("%d",&v),printf("%d",ask(v));break;
| ^~~~
foo.cc:25:2: error: expected '}' at end of input
25 | }
| ^
foo.cc:13:11: note: to match this '{'
13 | int main(){
| ^
[Hydro](https://hydro.ac)提供评测服务