Problem lunchbox
User ToiletBrIcker
Submission Time 2024-06-19 14:21:05
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:8:2: error: ‘priority_queue’ was not declared in this scope; did you mean ‘std::priority_queue’?
8 | priority_queue<int,vector<int>,greater<int>> Arr;
| ^~~~~~~~~~~~~~
| std::priority_queue
In file included from /usr/include/c++/9/queue:64,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:86,
from lunchbox.cpp:1:
/usr/include/c++/9/bits/stl_queue.h:443:11: note: ‘std::priority_queue’ declared here
443 | class priority_queue
| ^~~~~~~~~~~~~~
lunchbox.cpp:8:17: error: expected primary-expression before ‘int’
8 | priority_queue<int,vector<int>,greater<int>> Arr;
| ^~~
lunchbox.cpp:11:3: error: ‘Arr’ was not declared in this scope
11 | Arr.push(dong);
| ^~~
lunchbox.cpp:15:16: error: ‘Arr’ was not declared in this scope
15 |