Problem | GSS |
---|---|
User | Logout |
Submission Time | 2023-11-09 12:12:38 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
GSS.cpp: In function ‘int main()’:
GSS.cpp:16:28: error: no matching function for call to ‘std::priority_queue<long long int, std::vector<long long int>, std::greater<long long int> >::top(int&)’
16 | cost = all_costs.top(i) + all_costs.top(i + 1) + all_costs.top(i + 2);
| ^
In file included from /usr/include/c++/9/queue:64,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:86,
from GSS.cpp:1:
/usr/include/c++/9/bits/stl_queue.h:612:7: note: candidate: ‘std::priority_queue<_Tp, _Sequence, _Compare>::const_reference std::priority_queue<_Tp, _Sequence, _Compare>::top() const [with _Tp = long long int; _Sequence = std::vector<long long int>; _Compare = std::greater<long long int>; std::priority_queue<_Tp, _Sequence, _Compare>::const_reference = const long long int&]’
612 | top() const
| ^~~
/usr/include/c++/9/bits