Problem exam
User lleytonng
Submission Time 2024-06-18 10:53:06
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exam.cpp: In function ‘int main()’:
exam.cpp:6:2: error: expected initializer before ‘cin’
6 | cin >> check << endl;
| ^~~
exam.cpp:7:6: error: ‘check’ was not declared in this scope
7 | if (check == 1) {
| ^~~~~
exam.cpp:8:31: error: expected ‘;’ before ‘}’ token
8 | cout << "Hello World"<< endl
| ^
| ;
9 | }
| ~
exam.cpp:12:3: error: expected initializer before ‘int’
12 | int b
| ^~~