Problem exam
User leafeon
Submission Time 2025-05-24 22:15:21
Score 0
Max Time N/A
Max Memory N/A

Compile Error

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