Problem exam
User neosical
Submission Time 2024-06-24 14:28:45
Score 0
Max Time N/A
Max Memory N/A

Compile Error

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