Problem exam
User tzuyuan
Submission Time 2024-06-18 10:54:09
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:10:12: error: ‘a’ was not declared in this scope
10 | cin >> a >> b;
| ^
exam.cpp:10:17: error: ‘b’ was not declared in this scope
10 | cin >> a >> b;
| ^