| Problem | lunchbox |
|---|---|
| User | Impotato |
| Submission Time | 2025-12-30 19:27:30 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:8:2: error: ‘priority_queue’ was not declared in this scope
8 | priority_queue<int> v;
| ^~~~~~~~~~~~~~
lunchbox.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;
lunchbox.cpp:8:17: error: expected primary-expression before ‘int’
8 | priority_queue<int> v;
| ^~~
lunchbox.cpp:11:3: error: ‘v’ was not declared in this scope
11 | v.push(c);
| ^
lunchbox.cpp:14:11: error: ‘v’ was not declared in this scope
14 | if (a > v.top()) {
| ^