Problem exam
User Justyn
Submission Time 2024-06-18 10:52:08
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exam.cpp: In function ‘int main()’:
exam.cpp:4:10: error: expected initializer before ‘>>’ token
4 | int cin >> a,b;
| ^~
exam.cpp:5:10: error: expected initializer before ‘>>’ token
5 | int cin >> x;
| ^~
exam.cpp:6:5: error: ‘x’ was not declared in this scope
6 | if(x==1);
| ^
exam.cpp:8:5: error: ‘x’ was not declared in this scope
8 | if(x==2);
| ^
exam.cpp:9:10: error: ‘a’ was not declared in this scope
9 | cout << a * b;
| ^
exam.cpp:9:14: error: ‘b’ was not declared in this scope
9 | cout << a * b;
| ^