Problem | catlunch |
---|---|
User | jaylchicken |
Submission Time | 2024-10-19 20:09:17 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
catlunch.cpp: In function ‘int main()’:
catlunch.cpp:5:5: error: ‘priority_queue’ was not declared in this scope
5 | priority_queue<int> top_k_fish; //max priority queue
| ^~~~~~~~~~~~~~
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;
catlunch.cpp:5:20: error: expected primary-expression before ‘int’
5 | priority_queue<int> top_k_fish; //max priority queue
| ^~~
catlunch.cpp:13:13: error: ‘top_k_fish’ was not declared in this scope
13 | if (top_k_fish.size() < K) {
| ^~~~~~~~~~
catlunch.cpp:24:13: error: ‘top_k_fish’ was not declared in this scope
24 | while (!top_k_fish.empty()) {
| ^~~~~~~~~~