| Problem | helloworld |
|---|---|
| User | MistyMoon |
| Submission Time | 2026-02-14 09:28:18 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
helloworld.cpp:3:5: error: cannot declare ‘::main’ to be a global variable
3 | int main{
| ^~~~
helloworld.cpp:4:29: error: expected ‘}’ before ‘;’ token
4 | cout << "Hello World"<< endl;
| ^
helloworld.cpp:3:9: note: to match this ‘{’
3 | int main{
| ^
helloworld.cpp:4:22: error: invalid user-defined conversion from ‘std::basic_ostream<char>::__ostream_type’ {aka ‘std::basic_ostream<char>’} to ‘int’ [-fpermissive]
4 | cout << "Hello World"<< endl;
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~~
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,