Problem lostones
User Arjun
Submission Time 2025-12-14 22:26:53
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 lostones.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<std::pair<long long int, long long int> >, std::greater<std::pair<long long int, long long int> >()>’:
lostones.cpp:12:87: required from here
/usr/include/c++/9/bits/stl_queue.h:485:18: error: field ‘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> >()>::comp’ invalidly declared function type
485 | _Compare comp;
| ^~~~
lostones.cpp: In function ‘int main()’:
lostones.cpp:12:87: error: no matching function for call to ‘std::priority_queue&l