Problem exam
User Ansel
Submission Time 2026-04-10 16:28:10
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exam.cpp: In function ‘int main()’:
exam.cpp:6:5: error: expected ‘(’ before ‘x’
6 | if x==1:
| ^
| (
exam.cpp:8:3: error: ‘else’ without a previous ‘if’
8 | else:
| ^~~~
exam.cpp:8:7: error: expected primary-expression before ‘:’ token
8 | else:
| ^
exam.cpp:10:9: error: ‘a’ was not declared in this scope
10 | cin >> a,b;
| ^
exam.cpp:10:11: error: ‘b’ was not declared in this scope
10 | cin >> a,b;
| ^