Problem helloworld
User C2meang7
Submission Time 2024-11-26 21:02:55
Score 0
Max Time N/A
Max Memory N/A

Compile Error

helloworld.cpp: In function ‘int main()’:
helloworld.cpp:2:7: error: ‘cout’ is not a member of ‘std’
2 | 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 | int main(){
helloworld.cpp:2:29: error: expected primary-expression before ‘<<’ token
2 | std::cout <<"Hello World"; << std::endl;
| ^~
helloworld.cpp:2:37: error: ‘endl’ is not a member of ‘std’
2 | 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 | int main(){
helloworld.cpp:3:10: error: expected ‘}’ at end of input