Problem exam
User rhea61
Submission Time 2023-11-08 13:21:07
Score 0
Max Time N/A
Max Memory N/A

Compile Error

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