Problem exam
User HOK
Submission Time 2026-02-14 10:25:33
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exam.cpp: In function ‘int main()’:
exam.cpp:6:5: error: ‘number’ was not declared in this scope
6 | if (number==1){
| ^~~~~~
exam.cpp:7:8: error: ‘Hello’ was not declared in this scope; did you mean ‘ftello’?
7 | cout<<Hello World;
| ^~~~~
| ftello
exam.cpp:8:2: error: expected ‘}’ before ‘else’
8 | else if(number==2){
| ^~~~
exam.cpp:6:15: note: to match this ‘{’
6 | if (number==1){
| ^
exam.cpp:9:9: error: ‘a’ was not declared in this scope
9 | cout<<a*b;
| ^
exam.cpp:9:11: error: ‘b’ was not declared in this scope
9 | cout<<a*b;
| ^
exam.cpp:10:2: error: expected ‘}’ at end of input
10 | }
| ^
exam.cpp:3:11: note: to match this ‘{’
3 | int main(){
| ^