| Problem | lineup |
|---|---|
| User | LXYSGP |
| Submission Time | 2026-01-21 09:21:27 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
lineup.cpp: In function ‘int main()’:
lineup.cpp:11:21: error: no match for ‘operator=’ (operand types are ‘std::map<int, int>’ and ‘int’)
11 | mp[a[i].second] = 0;
| ^
In file included from /usr/include/c++/9/map:61,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:81,
from lineup.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 = int; _Tp = int; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, int> >]’
317 | operator=(const map&) = default;
| ^~~~~~~~
/usr/include/c++/9/bits/stl_map.h:317:17: note: no known conversion for argument 1 from ‘int’ to ‘const std::map<int, int>&’
317 | operator=(const map&) = default;
|