Problem lunchbox
User Bensamuel2008
Submission Time 2025-06-18 16:38:54
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:7:2: error: ‘priority_queue’ was not declared in this scope
7 | priority_queue<int, vector<int>, greater<int>> school;
| ^~~~~~~~~~~~~~
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:3:13: error: expected primary-expression before ‘long’
3 | #define int long long
| ^~~~
lunchbox.cpp:7:17: note: in expansion of macro ‘int’
7 | priority_queue<int, vector<int>, greater<int>> school;
| ^~~
lunchbox.cpp:10:3: error: ‘school’ was not declared in this scope
10 | school.push(k);
| ^~~~~~
lunchbox.cpp:12:14: error: ‘school’ was not declared in this scope
12 | while (N >= school.top() and no