Problem | lunchbox |
---|---|
User | Manish |
Submission Time | 2024-06-19 15:16:25 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:8:48: error: template argument 3 is invalid
8 | priority_queue<int, vector<int>, greater int>> pq;
| ^~
lunchbox.cpp:9:29: error: expected ‘;’ before ‘:’ token
9 | for(long long i = 0; i< m:++){
| ^
| ;
lunchbox.cpp:13:4: error: expected primary-expression before ‘while’
13 | while(!pq.empty() && n>= pq.top()){
| ^~~~~
lunchbox.cpp:12:5: error: expected ‘;’ before ‘while’
12 | }
| ^
| ;
13 | while(!pq.empty() && n>= pq.top()){
| ~~~~~
lunchbox.cpp:13:4: error: expected primary-expression before ‘while’
13 | while(!pq.empty() && n>= pq.top()){
| ^~~~~
lunchbox.cpp:12:5: error: expected ‘)’ before ‘while’
12 | }
| ^
|