Problem lunchbox
User burningout
Submission Time 2025-03-01 22:42:05
Score 0
Max Time N/A
Max Memory N/A

Compile Error

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: In instantiation of ‘class std::priority_queue<long long int, std::vector<int>, std::greater<int> >’:
lunchbox.cpp:6:45: required from here
/usr/include/c++/9/bits/stl_queue.h:467:67: error: static assertion failed: value_type must be the same as the underlying container
467 | static_assert(is_same<_Tp, typename _Sequence::value_type>::value,
| ^~~~~
lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:16:9: error: invalid use of member function ‘bool std::priority_queue<_Tp, _Sequence, _Compare>::empty() const [with _Tp = long long int; _Sequence = std::vector<int>; _Compare = std::greater<int>]’ (did you forget the ‘()’ ?)
16 | if