Problem collectmushrooms6
User xiaotong
Submission Time 2023-11-15 11:58:47
Score 0
Max Time N/A
Max Memory N/A

Compile Error

collectmushrooms6.cpp: In function ‘int countHarvestableMushrooms(int, int, int, int, const std::vector<std::__cxx11::basic_string<char> >&)’:
collectmushrooms6.cpp:10:35: error: use of deleted function ‘std::unordered_set<_Value, _Hash, _Pred, _Alloc>::unordered_set() [with _Value = std::pair<int, int>; _Hash = std::hash<std::pair<int, int> >; _Pred = std::equal_to<std::pair<int, int> >; _Alloc = std::allocator<std::pair<int, int> >]’
10 | unordered_set<pair<int, int>> coveredCells;
| ^~~~~~~~~~~~
In file included from /usr/include/c++/9/unordered_set:47,
from collectmushrooms6.cpp:4:
/usr/include/c++/9/bits/unordered_set.h:135:7: note: ‘std::unordered_set<_Value, _Hash, _Pred, _Alloc>::unordered_set() [with _Value = std::pair<int, int>; _Hash = std::hash<std::pair<int, int> >; _Pred = std::equal_to<std::pa