Problem exam
User j48495734
Submission Time 2026-03-29 00:47:48
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exam.cpp: In function ‘int32_t main()’:
exam.cpp:9:9: error: expected ‘;’ before ‘if’
9 | cin >>x
| ^
| ;
10 | if (x==1){
| ~~
exam.cpp:12:3: error: ‘else’ without a previous ‘if’
12 | }else if (x==2){
| ^~~~