Problem potatoqueue
User hwy
Submission Time 2023-06-10 20:15:56
Score 0
Max Time N/A
Max Memory N/A

Compile Error

potatoqueue.cpp: In function ‘int main()’:
potatoqueue.cpp:38:3: error: ‘cin’ was not declared in this scope
38 | cin >> cmd;
| ^~~
potatoqueue.cpp:4:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
3 | #include "potatoqueue.h"
+++ |+#include <iostream>
4 | using namespace std;
potatoqueue.cpp:47:4: error: ‘cout’ was not declared in this scope
47 | cout << query(item);
| ^~~~
potatoqueue.cpp:47:4: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?