Problem exam
User angelahaha
Submission Time 2023-11-08 11:03:54
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:6:6: error: expected ‘(’ before ‘x’
6 | if x = 2{
| ^
| (
exam.cpp:8:6: error: expected ‘(’ before ‘x’
8 | if x = 1 {
| ^
| (
exam.cpp:13:5: error: expected ‘}’ at end of input
13 | }
| ^
exam.cpp:4:11: note: to match this ‘{’
4 | int main(){
| ^