Problem exam
User FullName
Submission Time 2026-03-27 14:18:15
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exam.cpp: In function ‘int main()’:
exam.cpp:7:3: error: expected primary-expression before ‘if’
7 | (if x = 2
| ^~
exam.cpp:7:3: error: expected ‘)’ before ‘if’
7 | (if x = 2
| ~^~
| )
exam.cpp:10:11: error: ‘A’ was not declared in this scope
10 | cin >> (A,B);
| ^
exam.cpp:12:5: error: expected ‘(’ before ‘x’
12 | if x = 1
| ^
| (