Problem heatwv
User dacashew
Submission Time 2024-01-05 07:50:11
Score 0
Max Time N/A
Max Memory N/A

Compile Error

heatwv.cpp: In function ‘long long int dijkstra(std::vector<std::pair<long long int, long long int> >, long long int, long long int, long long int)’:
heatwv.cpp:21:20: error: ‘adj’ was not declared in this scope
21 | for (auto it : adj[cnode]) {
| ^~~
heatwv.cpp:24:44: 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>)’
24 | pq.push({dst[it.second], it.second});
| ^
In file included from /usr/include/c++/9/queue:64,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:86,
from heatwv.cpp:1:
/usr/include/c++/9/bits/stl_queue.h:627:7: note: candidate: ‘void std::priority_queue<