Problem helloworld
User AdwinLau
Submission Time 2024-03-26 10:33:09
Score 0
Max Time N/A
Max Memory N/A

Compile Error

helloworld.cpp: In function ‘int main()’:
helloworld.cpp:3:2: error: ‘cout’ was not declared in this scope
3 | {cout <<"Hello World">> endl;
| ^~~~
helloworld.cpp:1:1: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | using namespace std;
helloworld.cpp:3:25: error: ‘endl’ was not declared in this scope
3 | {cout <<"Hello World">> endl;
| ^~~~
helloworld.cpp:1:1: note: ‘std::endl’ is defined in header ‘<ostream>’; did you forget to ‘#include <ostream>’?
+++ |+#include <ostream>
1 | using namespace std;