Problem exam
User dayeetmaster
Submission Time 2023-04-27 22:13:21
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:5: error: expected ‘(’ before ‘x’
8 | if x=>2 {
| ^
| (
exam.cpp:12:2: error: expected ‘}’ at end of input
12 | }
| ^
exam.cpp:3:12: note: to match this ‘{’
3 | int main() {
| ^