Problem exam
User YII1719
Submission Time 2023-11-08 11:22:32
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exam.cpp:10:25: error: stray ‘\’ in program
10 | cout << "Hello World" \n;
| ^
exam.cpp: In function ‘int main()’:
exam.cpp:5:9: error: ‘a’ was not declared in this scope
5 | cin >> a >> b;
| ^
exam.cpp:5:14: error: ‘b’ was not declared in this scope
5 | cin >> a >> b;
| ^
exam.cpp:6:6: error: ‘x’ was not declared in this scope
6 | if (x = 2) {
| ^
exam.cpp:10:24: error: expected ‘;’ before ‘n’
10 | cout << "Hello World" \n;
| ^ ~
| ;