Problem | catlunch |
---|---|
User | 12345678 |
Submission Time | 2024-07-06 09:49:49 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
catlunch.cpp: In function ‘int main()’:
catlunch.cpp:8:2: error: ‘deque’ was not declared in this scope
8 | deque<int> dq;
| ^~~~~
catlunch.cpp:2:1: note: ‘std::deque’ is defined in header ‘<deque>’; did you forget to ‘#include <deque>’?
1 | #include <iostream>
+++ |+#include <deque>
2 | using namespace std;
catlunch.cpp:8:8: error: expected primary-expression before ‘int’
8 | deque<int> dq;
| ^~~
catlunch.cpp:12:3: error: ‘dq’ was not declared in this scope
12 | dq.push_back(x)
| ^~
catlunch.cpp:15:2: error: ‘priority_queue’ was not declared in this scope
15 | priority_queue<int> pq;
| ^~~~~~~~~~~~~~
catlunch.cpp:2:1: note: ‘std::priority_queue’ is defined in header ‘<queue>’; did you forget to ‘#include <queue>’?
1 | #include <iostream>
+++ |+#include <queue>
2 | using namespace std;