Problem helloworld
User AndyChen
Submission Time 2026-02-06 13:54:45
Score 0
Max Time N/A
Max Memory N/A

Compile Error

helloworld.cpp:1:10: error: #include expects "FILENAME" or <FILENAME>
1 | #include iostream
| ^~~~~~~~
helloworld.cpp:2:2: error: invalid preprocessing directive #using
2 | #using std
| ^~~~~
helloworld.cpp:3:5: error: cannot declare ‘::main’ to be a global variable
3 | int main{
| ^~~~
helloworld.cpp:4:1: error: ‘cout’ was not declared in this scope
4 | cout<<"Hello World";
| ^~~~
helloworld.cpp:4:20: error: expected ‘}’ before ‘;’ token
4 | cout<<"Hello World";
| ^
helloworld.cpp:3:9: note: to match this ‘{’
3 | int main{
| ^
helloworld.cpp:5:2: error: expected declaration before ‘}’ token
5 | }
| ^