Problem exam
User Orson
Submission Time 2025-02-21 14:18:47
Score 0
Max Time N/A
Max Memory N/A

Compile Error

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