Problem exam
User tzuyuan
Submission Time 2024-06-18 10:50:53
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exam.cpp: In function ‘int main()’:
exam.cpp:5:9: error: ‘x’ was not declared in this scope
5 | cin >> x
| ^
exam.cpp:9:2: error: ‘else’ without a previous ‘if’
9 | else{
| ^~~~
exam.cpp:11:23: error: expected ‘}’ at end of input
11 | cout << a*b << endl;}
| ^
exam.cpp:4:12: note: to match this ‘{’
4 | int main() {
| ^