Problem exam
User Rcrc
Submission Time 2026-09-22 08:06:11
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exam.cpp: In function ‘int main()’:
exam.cpp:8:32: error: expected ‘;’ before ‘)’ token
8 | {cout << "Hello World" << "\n");}
| ^
| ;
exam.cpp:10:28: error: ‘a’ was not declared in this scope
10 | else if (x == 2) {cout << a*b};
| ^
exam.cpp:10:30: error: ‘b’ was not declared in this scope
10 | else if (x == 2) {cout << a*b};
| ^