Problem exam
User Celado
Submission Time 2025-01-31 19:31:18
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exam.cpp: In function ‘int main()’:
exam.cpp:6:10: error: expected ‘;’ before ‘if’
6 | cin >> x
| ^
| ;
7 |
8 | if (x == 2) {
| ~~
exam.cpp:13:2: error: ‘else’ without a previous ‘if’
13 | else if (x == 1) {
| ^~~~