| Problem | towerdefense |
|---|---|
| User | YSH2020 |
| Submission Time | 2025-12-01 11:03:53 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
towerdefense.cpp: In function ‘int main()’:
towerdefense.cpp:21:170: 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(long long int&, long long int&)’
21 | if (dist[tmp.second].first+i.second>dist[i.first].first) {dist[i.first]={dist[tmp.second].first+i.second,dist[tmp.second].second}; pq.push(dist[i.first].first,i.first);}
| ^
In file included from /usr/include/c++/9/queue:64,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:86,
from towerdefense.cpp:1:
/usr/include/c++/9/bits/stl_queue.h:627:7: note: candidate: ‘void std::priority_queue<