Problem construct
User Codula
Submission Time 2023-01-13 06:37:54
Score 0
Max Time N/A
Max Memory N/A

Compile Error

construct.cpp:17:33: error: use of deleted function ‘std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::unordered_map() [with _Key = std::pair<long int, long int>; _Tp = long int; _Hash = std::hash<std::pair<long int, long int> >; _Pred = std::equal_to<std::pair<long int, long int> >; _Alloc = std::allocator<std::pair<const std::pair<long int, long int>, long int> >]’
17 | unordered_map<pair<int,int>,int>mp;
| ^~
In file included from /usr/include/c++/9/unordered_map:47,
from /usr/include/c++/9/functional:61,
from /usr/include/c++/9/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/9/algorithm:71,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from construct.cpp:3:
/usr/include/c++/9/bits/unordered_map.h:141:7: note: ‘std::unordered_map<_Key, _Tp, _Ha