Problem | lunchbox |
---|---|
User | AliLam |
Submission Time | 2025-06-19 16:16:08 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:9:1: error: ‘priortiy_queue’ was not declared in this scope
9 | priortiy_queue<long long, vector<long long>, greater<long long>>pq;
| ^~~~~~~~~~~~~~
lunchbox.cpp:9:16: error: expected primary-expression before ‘long’
9 | priortiy_queue<long long, vector<long long>, greater<long long>>pq;
| ^~~~
lunchbox.cpp:10:7: error: ‘i’ was not declared in this scope
10 | for (i=0;i<m;i++){
| ^
lunchbox.cpp:12:3: error: ‘pq’ was not declared in this scope
12 | pq.push(a);
| ^~
lunchbox.cpp:16:10: error: ‘pq’ was not declared in this scope
16 | sum += pq.top();
| ^~
lunchbox.cpp:21:8: error: expected ‘;’ before ‘}’ token
21 | ans--
| ^
| ;
22 | }
| ~