Problem | helloworld |
---|---|
User | Dannyboy |
Submission Time | 2023-11-08 10:28:32 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
helloworld.cpp: In function ‘int main()’:
helloworld.cpp:3:1: error: ‘ios’ has not been declared
3 | ios::sync_with_stdio(0);
| ^~~
helloworld.cpp:4:1: error: ‘cin’ was not declared in this scope
4 | cin.tie(0);
| ^~~
helloworld.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | using namespace std;
helloworld.cpp:5:1: error: ‘cout’ was not declared in this scope
5 | cout << "Hello World";
| ^~~~
helloworld.cpp:5:1: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?