Problem exam
User blob
Submission Time 2023-11-08 12:49:39
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exam.cpp: In function ‘int main()’:
exam.cpp:8:2: error: expected ‘,’ or ‘;’ before ‘if’
8 | if (x==1) {
| ^~
exam.cpp:11:2: error: ‘else’ without a previous ‘if’
11 | else if (x==2) {
| ^~~~