| Problem | votingcities |
|---|---|
| User | shoryu386 |
| Submission Time | 2022-12-24 23:08:48 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
votingcities.cpp: In function ‘int main()’:
votingcities.cpp:35:4: error: ‘dest’ was not declared in this scope; did you mean ‘dist’?
35 | dest = i.first; bm = i.second;
| ^~~~
| dist
votingcities.cpp:36:30: error: ‘w’ was not declared in this scope
36 | if (dist[dest][bm] > cd + w){
| ^
votingcities.cpp:38:31: error: no matching function for call to ‘std::priority_queue<std::pair<long long int, std::pair<long long int, long long int> > >::push(<brace-enclosed initializer list>)’
38 | pq.push({cd+w, {dest, bm}});
| ^
In file included from /usr/include/c++/9/queue:64,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:86,
from votingcities.cpp:1:
/usr/include/c++/9/bits/stl_queue.h:627:7: note: candidate: ‘void std::priority_queue<_Tp, _Sequence, _Compare>::push(const v