Problem mrt
User TheInvadr
Submission Time 2023-03-07 19:46:13
Score 0
Max Time N/A
Max Memory N/A

Compile Error

mrt.cpp: In function ‘std::vector<int> dikstra(int)’:
mrt.cpp:17:29: error: invalid use of non-static member function ‘std::priority_queue<_Tp, _Sequence, _Compare>::const_reference std::priority_queue<_Tp, _Sequence, _Compare>::top() const [with _Tp = std::pair<int, int>; _Sequence = std::vector<std::pair<int, int> >; _Compare = std::greater<std::pair<int, int> >; std::priority_queue<_Tp, _Sequence, _Compare>::const_reference = const std::pair<int, int>&]’
17 | pair<int,int> p = q.top;
| ~~^~~
In file included from /usr/include/c++/9/queue:64,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:86,
from mrt.cpp:1:
/usr/include/c++/9/bits/stl_queue.h:612:7: note: declared here
612 | top() const
| ^~~