Problem exam
User charlotteteo
Submission Time 2023-06-27 15:47:28
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exam.cpp: In function ‘int main()’:
exam.cpp:13:23: error: expected ‘;’ at end of input
13 | cout<<"hello world!"
| ~~~~~~~~~~~~~~^
| ;
exam.cpp:13:9: error: expected ‘}’ at end of input
13 | cout<<"hello world!"
| ^~~~~~~~~~~~~~
exam.cpp:12:14: note: to match this ‘{’
12 | if (x == 1) {
| ^
exam.cpp:13:9: error: expected ‘}’ at end of input
13 | cout<<"hello world!"
| ^~~~~~~~~~~~~~
exam.cpp:6:14: note: to match this ‘{’
6 | if (x == 2) {
| ^
exam.cpp:13:9: error: expected ‘}’ at end of input
13 | cout<<"hello world!"
| ^~~~~~~~~~~~~~
exam.cpp:3:11: note: to match this ‘{’
3 | int main(){
| ^