Problem exam
User HuaXTing
Submission Time 2026-11-20 14:24:38
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exam.cpp: In function ‘int main()’:
exam.cpp:9:4: error: expected ‘}’ before ‘else’
9 | {else if (x == 2){
| ~^~~~
exam.cpp:9:4: error: expected ‘}’ before ‘else’
exam.cpp:7:13: note: to match this ‘{’
7 | if (x == 1){
| ^
exam.cpp:14:3: error: expected ‘}’ at end of input
14 | }
| ^
exam.cpp:5:14: note: to match this ‘{’
5 | signed main(){
| ^