Problem exam
User Dan64091
Submission Time 2025-03-09 21:41:19
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exam.cpp: In function ‘int main()’:
exam.cpp:5:9: error: expected primary-expression before ‘int’
5 | cin >> int x;
| ^~~
exam.cpp:6:5: error: ‘x’ was not declared in this scope
6 | if(x == 1){
| ^
exam.cpp:10:10: error: expected primary-expression before ‘int’
10 | cin >> int a >> int b;
| ^~~
exam.cpp:11:11: error: ‘a’ was not declared in this scope
11 | cout << a*b;
| ^
exam.cpp:11:13: error: ‘b’ was not declared in this scope
11 | cout << a*b;
| ^