Problem collectmushrooms3
User YH
Submission Time 2025-11-09 03:49:05
Score 0
Max Time N/A
Max Memory N/A

Compile Error

collectmushrooms3.cpp: In function ‘int main()’:
collectmushrooms3.cpp:85:33: 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> >]’
85 | unordered_set<pair<int, int> > s;
| ^
In file included from /usr/include/c++/9/unordered_set:47,
from collectmushrooms3.cpp:11:
/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::pair<int, int> >; _Alloc = std::allocator<std::pair<int, int> >]’ is implicitly deleted because the default defi