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

Compile Error

exam.cpp: In function ‘int main()’:
exam.cpp:5:4: error: expected ‘(’ before ‘x’
5 | if x == 1;
| ^
| (
exam.cpp:7:1: error: ‘else’ without a previous ‘if’
7 | else;
| ^~~~
exam.cpp:8:17: error: expected ‘;’ before ‘return’
8 | cout << "A x B"
| ^
| ;
9 | return 0;
| ~~~~~~