Problem | helloworld2 |
---|---|
User | itsLQ |
Submission Time | 2023-08-02 22:53:44 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
helloworld2.cpp: In function ‘int main()’:
helloworld2.cpp:2:13: error: ‘cout’ was not declared in this scope; did you mean ‘std::cout’?
2 | int main() {cout << "Hello World"; return 0}
| ^~~~
| std::cout
In file included from helloworld2.cpp:1:
/usr/include/c++/9/iostream:61:18: note: ‘std::cout’ declared here
61 | extern ostream cout; /// Linked to standard output
| ^~~~
helloworld2.cpp:2:44: error: expected ‘;’ before ‘}’ token
2 | int main() {cout << "Hello World"; return 0}
| ^
| ;