Problem carrots
User maximushartanto
Submission Time 2025-12-27 11:13:03
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 carrots.cpp:1:
/usr/include/c++/9/bits/stl_queue.h: In instantiation of ‘class 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> >()>’:
carrots.cpp:21:51: required from here
/usr/include/c++/9/bits/stl_queue.h:485:18: error: field ‘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> >()>::comp’ invalidly declared function type
485 | _Compare comp;
| ^~~~
carrots.cpp: In function ‘int m