Problem helloworld
User binrui
Submission Time 2024-11-11 10:13:29
Score 0
Max Time N/A
Max Memory N/A

Compile Error

helloworld.cpp:2:13: error: cannot declare ‘::main’ to be a global variable
2 | signed main ({
| ^
helloworld.cpp:3:2: error: ‘cout’ was not declared in this scope
3 | cout << "Hello World";
| ^~~~
helloworld.cpp:1:1: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | using namespace std;
helloworld.cpp:3:23: error: expected ‘}’ before ‘;’ token
3 | cout << "Hello World";
| ^
helloworld.cpp:2:14: note: to match this ‘{’
2 | signed main ({
| ^
helloworld.cpp:3:23: error: expected ‘)’ before ‘;’ token
3 | cout << "Hello World";
| ^
| )
helloworld.cpp:2:13: note: to match this ‘(’
2 | signed main ({
| ^
helloworld.cpp:4:2: error: expected de