Problem exam
User niicoletong
Submission Time 2025-06-17 21:28:55
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:7: error: ‘else’ without a previous ‘if’
9 | } else if (x == 2) {
| ^~~~