Problem exam
User SMILE
Submission Time 2024-04-13 09:51:19
Score 0
Max Time N/A
Max Memory N/A

Compile Error

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