Problem exhibition
User Henries
Submission Time 2024-10-24 11:27:49
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exhibition.cpp: In function ‘int main()’:
exhibition.cpp:36:123: error: no matching function for call to ‘std::priority_queue<std::pair<long long int, long long int>, std::vector<std::pair<long long int, long long int> >, std::greater<std::pair<long long int, long long int> > >::priority_queue(long long int&)’
36 | priority_queue<pair<long long,long long>, vector<pair<long long,long long>>, greater<pair<long long,long long>>> frames(m);
| ^
In file included from /usr/include/c++/9/queue:64,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:86,
from exhibition.cpp:1:
/usr/include/c++/9/bits/stl_queue.h:584:2: note: candidate: ‘template<class _InputIterator> std::priority_queue<_Tp, _Sequence, _Compare>::priority_que