Problem | firefighting |
---|---|
User | cobnet |
Submission Time | 2023-01-29 02:10:19 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
firefighting.cpp: In function ‘long long int shortestPath(int, int, std::vector<std::pair<int, int> >*, int)’:
firefighting.cpp:20:28: error: no match for ‘operator!=’ (operand types are ‘std::vector<long long int>’ and ‘int’)
20 | if (dist_table[src][dest] != INF || dist_table[dest][src] != INF)
| ~~~~~~~~~~~~~~~~~~~~~ ^~
| |
| std::vector<long long int>
In file included from /usr/include/c++/9/iosfwd:40,
from /usr/include/c++/9/ios:38,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,
from firefighting.cpp:1:
/usr/include/c++/9/bits/postypes.h:227:5: note: candidate: ‘template<class _StateT> bool std::operator!=(const std::fpos<_StateT>&, const std::fpos<_StateT>&)’
227 | operator!=(const fpos<_StateT>& __lhs, const fpos<_State