Problem evenorodd
User berrymochi
Submission Time 2026-06-22 16:18:37
Score 0
Max Time N/A
Max Memory N/A

Compile Error

evenorodd.cpp: In function ‘int main()’:
evenorodd.cpp:9:2: error: ‘cin’ was not declared in this scope
9 | cin >> a >> b;
| ^~~
evenorodd.cpp:4:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
3 | #include <queue>
+++ |+#include <iostream>
4 | using namespace std;
evenorodd.cpp:11:3: error: ‘cout’ was not declared in this scope
11 | cout << "even"<<"\n";
| ^~~~
evenorodd.cpp:11:3: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
evenorodd.cpp:14:3: error: ‘cout’ was not declared in this scope
14 | cout << "odd"<<"\n";
| ^~~~
evenorodd.cpp:14:3: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
evenorodd.cpp:16:3: error: ‘cout’ was not declared in this scope
16 | cout