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

Compile Error

exam.cpp: In function ‘int main()’:
exam.cpp:6:11: error: expected primary-expression before ‘:’ token
6 | if (x==1):
| ^
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;
| ^