Problem exam
User ishat024
Submission Time 2023-11-08 11:12:04
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exam.cpp: In function ‘int32_t main()’:
exam.cpp:8:5: error: expected initializer before ‘cin’
8 | cin >>x;
| ^~~
exam.cpp:9:9: error: ‘x’ was not declared in this scope
9 | if (x==1)
| ^
exam.cpp: At global scope:
exam.cpp:28:1: error: expected declaration before ‘}’ token
28 | }
| ^