Problem helloworld
User SirCTan
Submission Time 2024-12-16 13:27:15
Score 0
Max Time N/A
Max Memory N/A

Compile Error

helloworld.cpp: In function ‘int main()’:
helloworld.cpp:3:10: error: ‘cout’ is not a member of ‘std’
3 | std::cout << "Hello, World" << std::endl;
| ^~~~
helloworld.cpp:1:1: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 |
helloworld.cpp:3:41: error: ‘endl’ is not a member of ‘std’
3 | 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 |