Problem ippt
User XiYangYang
Submission Time 2026-02-04 14:53:23
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ippt.cpp: In function ‘int main()’:
ippt.cpp:10:9: error: ‘res’ does not name a type
10 | const res = a + b + c;
| ^~~
ippt.cpp:11:11: error: ‘res’ was not declared in this scope
11 | switch (res):
| ^~~
ippt.cpp:11:15: error: expected primary-expression before ‘:’ token
11 | switch (res):
| ^
ippt.cpp:14:4: error: break statement not within loop or switch
14 | break;
| ^~~~~
ippt.cpp:15:8: error: ‘res’ was not declared in this scope
15 | case res < 75:
| ^~~
ippt.cpp:15:3: error: case label ‘<expression error>’ not within a switch statement
15 | case res < 75:
| ^~~~
ippt.cpp:17:4: error: break statement not within loop or switch
17 | break;
| ^~~~~
ippt.cpp:18:3: error: case label ‘<expression error>’ not within a switch statement
18 | case res < 85:
| ^~~