Problem | exoticplants |
---|---|
User | ForgottenDragon |
Submission Time | 2025-09-08 21:26:33 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
exoticplants.cpp: In function ‘long long int dijkstra(long long int, long long int)’:
exoticplants.cpp:39:23: error: cannot decompose non-array non-class type ‘long long int’
39 | for (auto [t, w] : routes[u]) {
| ^~~~~~
exoticplants.cpp:43:41: error: no matching function for call to ‘std::priority_queue<std::pair<long long int, long long int>, std::vector<std::pair<long long int, long long int> >, std::greater<std::pair<long long int, long long int> > >::push(<brace-enclosed initializer list>)’
43 | aa.push({dist[t], t});
| ^
In file included from /usr/include/c++/9/queue:64,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:86,
from exoticplants.cpp:1:
/usr/include/c++/9/bits/stl_queue.h:627:7: note: candidate: ‘void std::priority_queue<_Tp, _Sequence, _Compare&