| Problem | towerdefense |
|---|---|
| User | YSH2020 |
| Submission Time | 2025-12-01 10:50:49 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
towerdefense.cpp: In function ‘int main()’:
towerdefense.cpp:21:39: error: no match for ‘operator>’ (operand types are ‘long long int’ and ‘std::pair<long long int, long long int>’)
21 | if (dist[tmp.second].first+i.second>dist[i.first]) {dist[i.first]={dist[tmp.second].first+i.second,dist[tmp.second].second}; pq.push(dist[i.first].first,i.first);}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
| | |
| long long int std::pair<long long int, long long int>
In file included from /usr/include/c++/9/regex:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:110,
from towerdefense.cpp:1:
/usr/include/c++/9/bits/regex.h:1081:5: note: candidate: ‘template<class _BiIter> bool std::__cxx11::operator>(const std::__cxx11::sub_match<_BiIter>&, const std::__cxx11::sub_match<_BiIter