Problem | evenorodd |
---|---|
User | ziping |
Submission Time | 2024-07-19 16:02:47 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
evenorodd.cpp: In function ‘int main()’:
evenorodd.cpp:5:2: error: ‘cin’ was not declared in this scope
5 | cin >> number;
| ^~~
evenorodd.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | using namespace std;
evenorodd.cpp:8:3: error: ‘cout’ was not declared in this scope
8 | cout << "Even" << endl;
| ^~~~
evenorodd.cpp:8:3: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
evenorodd.cpp:8:21: error: ‘endl’ was not declared in this scope
8 | cout << "Even" << endl;
| ^~~~
evenorodd.cpp:1:1: note: ‘std::endl’ is defined in header ‘<ostream>’; did you forget to ‘#include <ostream>’?
+++ |+#include <ostream>
1 | using namespace std;
evenorodd.cpp:10:3: error: ‘cout’ wa