Problem helloworld
User keeran
Submission Time 2025-02-19 16:00:11
Score 0
Max Time N/A
Max Memory N/A

Compile Error

helloworld.cpp:3:14: error: cannot declare ‘::main’ to be a global variable
3 | int32_t main ({
| ^
helloworld.cpp:4:23: error: expected ‘}’ before ‘;’ token
4 | cout << 'Hello World';
| ^
helloworld.cpp:3:15: note: to match this ‘{’
3 | int32_t main ({
| ^
helloworld.cpp:4:23: error: expected ‘)’ before ‘;’ token
4 | cout << 'Hello World';
| ^
| )
helloworld.cpp:3:14: note: to match this ‘(’
3 | int32_t main ({
| ^
helloworld.cpp:5:1: error: expected declaration before ‘}’ token
5 | })
| ^
helloworld.cpp:5:2: error: expected unqualified-id before ‘)’ token
5 | })
| ^