Problem lunchbox
User Tristyy
Submission Time 2024-06-19 14:46:42
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:3:2: error: ‘cin’ was not declared in this scope
3 | cin >> n >> m;
| ^~~
lunchbox.cpp:5:2: error: ‘priority_queue’ was not declared in this scope
5 | priority_queue<int, vector<int>, greater<int>> pq;
| ^~~~~~~~~~~~~~
lunchbox.cpp:5:17: error: expected primary-expression before ‘int’
5 | priority_queue<int, vector<int>, greater<int>> pq;
| ^~~
lunchbox.cpp:8:3: error: ‘pq’ was not declared in this scope
8 | pq.push(b);
| ^~
lunchbox.cpp:10:13: error: ‘pq’ was not declared in this scope
10 | while (n > pq.top()){
| ^~
lunchbox.cpp:14:2: error: ‘cout’ was not declared in this scope
14 | cout << (h-pq.size());
| ^~~~
lunchbox.cpp:14:13: error: ‘pq’ was not declared in this scope
14 | cout << (h-pq.size());