Problem exam
User thatlycheeoolongdrink
Submission Time 2024-02-17 14:11:59
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exam.cpp: In function ‘int main()’:
exam.cpp:4:7: error: ‘x’ was not declared in this scope
4 | cin>>x;
| ^
exam.cpp:5:5: error: expected ‘(’ before ‘x’
5 | if x == 1{
| ^
| (
exam.cpp:8:3: error: ‘else’ without a previous ‘if’
8 | else{
| ^~~~