Problem | helloworld |
---|---|
User | codementality |
Submission Time | 2023-02-09 17:06:22 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
helloworld.cpp:4:5: error: cannot declare ‘::main’ to be a global variable
4 | int main {
| ^~~~
helloworld.cpp:5:23: error: expected ‘}’ before ‘;’ token
5 | cout << "hello world";
| ^
helloworld.cpp:4:10: note: to match this ‘{’
4 | int main {
| ^
helloworld.cpp:5:7: 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_ios.h:117:16: note: can