Problem exam
User john
Submission Time 2025-01-20 17:07:47
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exam.cpp: In function ‘int main()’:
exam.cpp:3:6: error: ‘x’ was not declared in this scope
3 | if (x=1);{
| ^
exam.cpp:6:1: error: ‘else’ without a previous ‘if’
6 | else{
| ^~~~