Problem feast
User hwy
Submission Time 2023-06-24 23:39:27
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 feast.cpp:1:
/usr/include/c++/9/bits/stl_queue.h: In instantiation of ‘class std::priority_queue<std::pair<long long int, long long int>, std::vector<long long int>, std::greater<long long int> >’:
feast.cpp:20:56: 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,
| ^~~~~
feast.cpp: In function ‘std::vector<long long int> func(std::vector<long long int>)’:
feast.cpp:28:21: error: no matching function for call to ‘std::priority_queue<std::pair<long long int, long long int>, std::vector<long long int>, std::