| Problem | eating |
|---|---|
| User | cheryltkx |
| Submission Time | 2026-04-18 11:51:01 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
eating.cpp: In function ‘int main()’:
eating.cpp:15:8: error: no match for ‘operator=’ (operand types are ‘std::map<long long int, std::map<long long int, bool> >::mapped_type’ {aka ‘std::map<long long int, bool>’} and ‘int’)
15 | m[b]=1;
| ^
In file included from /usr/include/c++/9/map:61,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:81,
from eating.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 = bool; _Compare = std::less<long long int>; _Alloc = std::allocator<std::pair<const long long int, bool> >]’
317 | operator=(const map&) = default;
| ^~~~~~~~
/usr/include/c++/9/bits/stl_map.h:317:17: note: no known conversion for argument 1 from