Problem field
User oiu890
Submission Time 2024-05-18 21:58:20
Score 0
Max Time N/A
Max Memory N/A

Compile Error

field.cpp: In member function ‘int Field::bfsShortestPath(int, int)’:
field.cpp:57:66: error: use of deleted function ‘std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::unordered_map() [with _Key = std::pair<int, int>; _Tp = int; _Hash = std::hash<std::pair<int, int> >; _Pred = std::equal_to<std::pair<int, int> >; _Alloc = std::allocator<std::pair<const std::pair<int, int>, int> >]’
57 | unordered_map<pair<int, int>, int, hash<pair<int, int>>> dist;
| ^~~~
In file included from /usr/include/c++/9/unordered_map:47,
from field.cpp:4:
/usr/include/c++/9/bits/unordered_map.h:141:7: note: ‘std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::unordered_map() [with _Key = std::pair<int, int>; _Tp = int; _Hash = std::hash<std::pair<int, int> >; _Pred = std::equal_to<std::p