Problem | multipleswith8 |
---|---|
User | Mimikyu |
Submission Time | 2025-02-02 17:42:59 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
multipleswith8.cpp: In function ‘int main()’:
multipleswith8.cpp:28:40: error: no match for ‘operator=’ (operand types are ‘std::unordered_map<long long int, long long int>’ and ‘int’)
28 | for (int i = 0; i < m; i++) cnt8[i] = 0;
| ^
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 multipleswith8.cpp:1:
/usr/include/c++/9/bits/unordered_map.h:272:7: note: candidate: ‘std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>& std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::operator=(const std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>&) [with _Key = long long int; _Tp = long long int; _Hash =