Problem cyberland_apio23
User jatrophalouvre
Submission Time 2024-07-25 21:53:26
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cyberland_apio23.cpp: In function ‘ld dijkstra()’:
cyberland_apio23.cpp:34:24: error: no matching function for call to ‘std::priority_queue<std::tuple<long double, int, int>, std::vector<std::tuple<long double, int, int> >, std::greater<std::tuple<long double, int, int> > >::push(<brace-enclosed initializer list>)’
34 | q.push({0.0, te, k});
| ^
In file included from /usr/include/c++/9/queue:64,
from cyberland_apio23.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 double, int, int>; _Sequence = std::vector<std::tuple<long double, int, int> >; _Compare = std::greater<std::tuple<long double, int, int> >; std::priority_queue<_Tp, _Sequence, _Compare>::value_type = std::tuple<long double, int, int>]’
627