Problem exam
User austenj
Submission Time 2026-06-22 15:38:24
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exam.cpp: In function ‘int main()’:
exam.cpp:7:9: error: ‘a’ was not declared in this scope
7 | cin>>x>>a>>b;
| ^
exam.cpp:7:12: error: ‘b’ was not declared in this scope
7 | cin>>x>>a>>b;
| ^
exam.cpp:9:16: error: expected ‘;’ before ‘{’ token
9 | else (x == 2)
| ^
| ;
10 | {cout << a*b; long long a,b;
| ~