| Problem | helloworld |
|---|---|
| User | Willywonka |
| Submission Time | 2026-07-07 12:39:37 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
helloworld.cpp:2:20: error: expected ‘;’ before ‘int’
2 | using namespace std
| ^
| ;
3 |
4 | int main{
| ~~~
helloworld.cpp:4:5: error: cannot declare ‘::main’ to be a global variable
4 | int main{
| ^~~~
helloworld.cpp:5:22: error: expected ‘}’ before ‘;’ token
5 | cout << "Hello World";
| ^
helloworld.cpp:4:9: note: to match this ‘{’
4 | int main{
| ^
helloworld.cpp:5:6: 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 /