Problem exam
User Slayer555
Submission Time 2025-11-21 15:09:26
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exam.cpp: In function ‘int main()’:
exam.cpp:11:3: error: ‘else’ without a previous ‘if’
11 | else if (x = 2); {
| ^~~~
exam.cpp:14:3: error: ‘else’ without a previous ‘if’
14 | else {
| ^~~~
exam.cpp:17:1: error: expected ‘}’ at end of input
17 | }
| ^
exam.cpp:8:14: note: to match this ‘{’
8 | if (x = 1); {
| ^
exam.cpp:17:1: error: expected ‘}’ at end of input
17 | }
| ^
exam.cpp:3:12: note: to match this ‘{’
3 | int main() {
| ^