Problem | helloworld |
---|---|
User | Ryan |
Submission Time | 2023-09-06 13:21:24 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
helloworld.cpp: In function ‘int main()’:
helloworld.cpp:1:19: error: ‘cout’ is not a member of ‘std’
1 | int main() { std::cout << "Hello, World!" << std::endl; return 0; }
| ^~~~
helloworld.cpp:1:1: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | int main() { std::cout << "Hello, World!" << std::endl; return 0; }
helloworld.cpp:1:51: error: ‘endl’ is not a member of ‘std’
1 | int main() { std::cout << "Hello, World!" << std::endl; return 0; }
| ^~~~
helloworld.cpp:1:1: note: ‘std::endl’ is defined in header ‘<ostream>’; did you forget to ‘#include <ostream>’?
+++ |+#include <ostream>
1 | int main() { std::cout << "Hello, World!" << std::endl; return 0; }