ho_t3.cpp: In function 'void solve()':
ho_t3.cpp:34:28: error: no matching function for call to 'std::priority_queue<std::pair<long long int, state>, std::vector<std::pair<long long int, state> >, std::greater<std::pair<long long int, state> > >::emplace(int, <brace-enclosed initializer list>)'
pq.emplace(0, {1, n, 0, 0});
^
In file included from /usr/include/c++/7/queue:64:0,
from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:86,
from ho_t3.cpp:1:
/usr/include/c++/7/bits/stl_queue.h:611:2: note: candidate: void std::priority_queue<_Tp, _Sequence, _Compare>::emplace(_Args&& ...) [with _Args = {}; _Tp = std::pair<long long int, state>; _Sequence = std::vector<std::pair<long long int, state> >; _Compare = std::greater<std::pair<long long int, state> >]
emplace(_Args&&... __args)
^~~~~~~
/usr/include/c++/7/bits/stl_queue.h:611:2: note: candidate expects 0 arguments, 2 provided
ho_t3.cpp:54:65: error: no matching function for call to 'std::priority_queue<std::pair<long long int, state>, std::vector<std::pair<long long int, state> >, std::greater<std::pair<long long int, state> > >::emplace(ll&, <brace-enclosed initializer list>)'
pq.emplace(nxt1, {u.l+1, u.r, u.cnt + (total <= t[u.l]), 0});
^
In file included from /usr/include/c++/7/queue:64:0,
from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:86,
from ho_t3.cpp:1:
/usr/include/c++/7/bits/stl_queue.h:611:2: note: candidate: void std::priority_queue<_Tp, _Sequence, _Compare>::emplace(_Args&& ...) [with _Args = {}; _Tp = std::pair<long long int, state>; _Sequence = std::vector<std::pair<long long int, state> >; _Compare = std::greater<std::pair<long long int, state> >]
emplace(_Args&&... __args)
^~~~~~~
/usr/include/c++/7/bits/stl_queue.h:611:2: note: candidate expects 0 arguments, 2 provided
ho_t3.cpp:62:65: error: no matching function for call to 'std::priority_queue<std::pair<long long int, state>, std::vector<std::pair<long long int, state> >, std::greater<std::pair<long long int, state> > >::emplace(ll&, <brace-enclosed initializer list>)'
pq.emplace(nxt2, {u.l, u.r-1, u.cnt + (total <= t[u.r]), 1});
^
In file included from /usr/include/c++/7/queue:64:0,
from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:86,
from ho_t3.cpp:1:
/usr/include/c++/7/bits/stl_queue.h:611:2: note: candidate: void std::priority_queue<_Tp, _Sequence, _Compare>::emplace(_Args&& ...) [with _Args = {}; _Tp = std::pair<long long int, state>; _Sequence = std::vector<std::pair<long long int, state> >; _Compare = std::greater<std::pair<long long int, state> >]
emplace(_Args&&... __args)
^~~~~~~
/usr/include/c++/7/bits/stl_queue.h:611:2: note: candidate expects 0 arguments, 2 provided
ho_t3.cpp:70:65: error: no matching function for call to 'std::priority_queue<std::pair<long long int, state>, std::vector<std::pair<long long int, state> >, std::greater<std::pair<long long int, state> > >::emplace(ll&, <brace-enclosed initializer list>)'
pq.emplace(nxt1, {u.l, u.r-1, u.cnt + (total <= t[u.r]), 1});
^
In file included from /usr/include/c++/7/queue:64:0,
from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:86,
from ho_t3.cpp:1:
/usr/include/c++/7/bits/stl_queue.h:611:2: note: candidate: void std::priority_queue<_Tp, _Sequence, _Compare>::emplace(_Args&& ...) [with _Args = {}; _Tp = std::pair<long long int, state>; _Sequence = std::vector<std::pair<long long int, state> >; _Compare = std::greater<std::pair<long long int, state> >]
emplace(_Args&&... __args)
^~~~~~~
/usr/include/c++/7/bits/stl_queue.h:611:2: note: candidate expects 0 arguments, 2 provided
ho_t3.cpp:78:65: error: no matching function for call to 'std::priority_queue<std::pair<long long int, state>, std::vector<std::pair<long long int, state> >, std::greater<std::pair<long long int, state> > >::emplace(ll&, <brace-enclosed initializer list>)'
pq.emplace(nxt2, {u.l+1, u.r, u.cnt + (total <= t[u.l]), 0});
^
In file included from /usr/include/c++/7/queue:64:0,
from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:86,
from ho_t3.cpp:1:
/usr/include/c++/7/bits/stl_queue.h:611:2: note: candidate: void std::priority_queue<_Tp, _Sequence, _Compare>::emplace(_Args&& ...) [with _Args = {}; _Tp = std::pair<long long int, state>; _Sequence = std::vector<std::pair<long long int, state> >; _Compare = std::greater<std::pair<long long int, state> >]
emplace(_Args&&... __args)
^~~~~~~
/usr/include/c++/7/bits/stl_queue.h:611:2: note: candidate expects 0 arguments, 2 provided