Problem lostones
User CKCodeBreaker55
Submission Time 2024-12-21 10:54:45
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lostones.cpp: In function ‘int main()’:
lostones.cpp:19:38: error: no matching function for call to ‘std::priority_queue<std::tuple<long long int, long long int, long long int>, std::vector<std::tuple<long long int, long long int, long long int> >, std::greater<std::tuple<long long int, long long int, long long int> > >::push(<brace-enclosed initializer list>)’
19 | pq.push({labs[i].first, i, 1}); // (initial confusion level ai, lab index i, session number 1)
| ^
In file included from /usr/include/c++/9/queue:64,
from lostones.cpp:2:
/usr/include/c++/9/bits/stl_queue.h:627:7: note: candidate: ‘void std::priority_queue<_Tp, _Sequence, _Compare>::push(const value_type&) [with _Tp = std::tuple<long long int, long long int, long long int>; _Sequence = std::vector<std::tuple<long long int, long long int, long long int> >; _Compare = std: