Problem | xuehuapiaopiao |
---|---|
User | Kannan |
Submission Time | 2023-12-20 13:24:51 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
xuehuapiaopiao.cpp: In function ‘int main()’:
xuehuapiaopiao.cpp:22:17: error: no match for ‘operator=’ (operand types are ‘std::map<long long int, long long int>’ and ‘std::pair<const long long int, long long int>’)
22 | msl[count] = *it;
| ^~
In file included from /usr/include/c++/9/map:61,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:81,
from xuehuapiaopiao.cpp:1:
/usr/include/c++/9/bits/stl_map.h:317:7: note: candidate: ‘std::map<_Key, _Tp, _Compare, _Alloc>& std::map<_Key, _Tp, _Compare, _Alloc>::operator=(const std::map<_Key, _Tp, _Compare, _Alloc>&) [with _Key = long long int; _Tp = long long int; _Compare = std::less<long long int>; _Alloc = std::allocator<std::pair<const long long int, long long int> >]’
317 | operator=(const map&) = default;
| ^~~~~~~~
/usr/include/c++/9/bits/stl_map.h:317:17: note: no known