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

Compile Error

exam.cpp:1:19: error: missing terminating > character
1 | #include <iostream
| ^
exam.cpp: In function ‘int main()’:
exam.cpp:7:35: error: expected ‘;’ before ‘}’ token
7 | if (x == 1){cout << "Hello World"}("\n");
| ^
| ;
exam.cpp:14:2: error: ‘else’ without a previous ‘if’
14 | else if (x == 2) {cout << a*b};
| ^~~~
exam.cpp:14:31: error: expected ‘;’ before ‘}’ token
14 | else if (x == 2) {cout << a*b};
| ^
| ;