Problem | helloworld |
---|---|
User | Aaaaaaaaa |
Submission Time | 2025-01-03 15:02:41 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
helloworld.cpp:1:20: error: expected ‘;’ before ‘int’
1 | using namespace std
| ^
| ;
2 | int main()
| ~~~
helloworld.cpp: In function ‘int main()’:
helloworld.cpp:4:2: error: ‘cout’ was not declared in this scope
4 | 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:4:28: error: ‘endl’ was not declared in this scope
4 | 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