Problem exam
User blank
Submission Time 2025-01-20 22:57:05
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exam.cpp: In function ‘int main()’:
exam.cpp:8:2: error: ‘If’ was not declared in this scope
8 | If x = 2{cin >> A >> B; }
| ^~
exam.cpp:9:4: error: expected ‘;’ before ‘x’
9 | If x = 1{cout << "Hello World";}
| ^~
| ;
exam.cpp:10:2: error: ‘else’ without a previous ‘if’
10 | else {cout << A*B;};
| ^~~~
exam.cpp:11:9: error: expected ‘;’ before ‘}’ token
11 | return 0
| ^
| ;
12 | }
| ~