Problem exam
User brat
Submission Time 2025-09-23 16:32:30
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exam.cpp: In function ‘int main()’:
exam.cpp:10:5: error: expected ‘(’ before ‘a’
10 | if a == 1:
| ^
| (
exam.cpp:12:2: error: ‘else’ without a previous ‘if’
12 | else:
| ^~~~
exam.cpp:12:6: error: expected primary-expression before ‘:’ token
12 | else:
| ^
exam.cpp:14:10: error: ‘b’ was not declared in this scope
14 | cin >> b >> c;
| ^
exam.cpp:14:15: error: ‘c’ was not declared in this scope
14 | cin >> b >> c;
| ^