Problem exam
User Rigiddivot251112
Submission Time 2026-06-22 15:39:15
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exam.cpp: In function ‘int main()’:
exam.cpp:4:2: error: ‘x’ was not declared in this scope
4 | x = 1 or 2
| ^
exam.cpp:6:23: error: expected ‘;’ before ‘else’
6 | cout << "Hello World"
| ^
| ;
7 | else;
| ~~~~
exam.cpp:8:17: error: expected ‘;’ before ‘}’ token
8 | cout << "A X B"
| ^
| ;
9 | }
| ~