Problem helloworld
User Harijit1106
Submission Time 2024-01-29 21:24:09
Score 0
Max Time N/A
Max Memory N/A

Compile Error

helloworld.cpp:4:8: error: cannot declare ‘::main’ to be a global variable
4 | signed main{
| ^~~~
helloworld.cpp:5:26: error: expected ‘}’ before ‘;’ token
5 | cout << "Hello World";
| ^
helloworld.cpp:4:12: note: to match this ‘{’
4 | signed main{
| ^
helloworld.cpp:5:10: error: invalid user-defined conversion from ‘std::basic_ostream<char>’ to ‘int’ [-fpermissive]
5 | cout << "Hello World";
| ~~~~~^~~~~~~~~~~~~~~~
In file included from /usr/include/c++/9/ios:44,
from /usr/include/c++/9/istream:38,
from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from helloworld.cpp:1:
/usr/include/c++/9/bits/basic_i