Problem exam
User cheryltkx
Submission Time 2026-02-28 11:14:29
Score 0
Max Time N/A
Max Memory N/A

Compile Error

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