Problem exam
User jambusk
Submission Time 2025-06-16 14:48:01
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exam.cpp: In function ‘int main()’:
exam.cpp:7:5: error: expected ‘(’ before ‘x’
7 | if x == '2';
| ^
| (
exam.cpp:8:10: error: ‘A’ was not declared in this scope
8 | cin >> A >> B;
| ^
exam.cpp:8:15: error: ‘B’ was not declared in this scope
8 | cin >> A >> B;
| ^
exam.cpp:10:5: error: expected ‘(’ before ‘x’
10 | if x == '1';
| ^
| (