| Problem | helloworld |
|---|---|
| User | yikai |
| Submission Time | 2026-02-11 17:56:40 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
helloworld.cpp:1:5: error: cannot declare ‘::main’ to be a global variable
1 | int main{
| ^~~~
helloworld.cpp:2:6: error: ‘cout’ was not declared in this scope
2 | std:cout<<"Hello world"<<std::endl;
| ^~~~
helloworld.cpp:2:32: error: ‘endl’ is not a member of ‘std’
2 | std:cout<<"Hello world"<<std::endl;
| ^~~~
helloworld.cpp:1:1: note: ‘std::endl’ is defined in header ‘<ostream>’; did you forget to ‘#include <ostream>’?
+++ |+#include <ostream>
1 | int main{
helloworld.cpp:2:36: error: expected ‘}’ before ‘;’ token
2 | std:cout<<"Hello world"<<std::endl;
| ^
helloworld.cpp:1:9: note: to match this ‘{’
1 | int main{
| ^
helloworld.cpp:3:2: error: expected unqualified-id before ‘return’
3 | return 0
| ^~~~~~