Problem exam
User Yicen
Submission Time 2024-02-23 22:35:46
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exam.cpp:2:20: error: expected ‘;’ before ‘int’
2 | using namespace std
| ^
| ;
3 | int main () {
| ~~~
exam.cpp: In function ‘int main()’:
exam.cpp:4:9: error: ‘x’ was not declared in this scope
4 | cin >> x >> a >> b
| ^
exam.cpp:4:14: error: ‘a’ was not declared in this scope
4 | cin >> x >> a >> b
| ^
exam.cpp:4:19: error: ‘b’ was not declared in this scope
4 | cin >> x >> a >> b
| ^
exam.cpp:7:5: error: ‘else’ without a previous ‘if’
7 | } else if (x=2)
| ^~~~