Problem | helloworld |
---|---|
User | ForsakenPBJ |
Submission Time | 2024-03-26 12:22:31 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
helloworld.cpp:2:7: error: expected nested-name-specifier before ‘std’
2 | using std namespace;
| ^~~
helloworld.cpp:4:5: error: cannot declare ‘::main’ to be a global variable
4 | int main{
| ^~~~
helloworld.cpp:5:2: error: ‘cout’ was not declared in this scope; did you mean ‘std::cout’?
5 | cout << "Hello World";
| ^~~~
| std::cout
In file included from helloworld.cpp:1:
/usr/include/c++/9/iostream:61:18: note: ‘std::cout’ declared here
61 | extern ostream cout; /// Linked to standard output
| ^~~~
helloworld.cpp:5:23: error: expected ‘}’ before ‘;’ token
5 | cout << "Hello World";
| ^
helloworld.cpp:4:9: note: to match this ‘{’
4 | int main{
| ^
helloworld.cpp:6:2: error: expected unqualified-id before ‘return’
6 | return 0;
| ^~~~~~
helloworld.cpp:7:1: error: expe