Problem | summarising2020 |
---|---|
User | AlphanumericUsername |
Submission Time | 2023-07-22 20:39:31 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
summarising2020.cpp: In function ‘long long int xythesnake(int, std::vector<int>)’:
summarising2020.cpp:8:11: error: no match for ‘operator=’ (operand types are ‘std::map<long long int, std::vector<long long int> >::mapped_type’ {aka ‘std::vector<long long int>’} and ‘std::vector<int>’)
8 | m[cnt++]=A;
| ^
In file included from /usr/include/c++/9/vector:72,
from summarising2020.h:1,
from summarising2020.cpp:1:
/usr/include/c++/9/bits/vector.tcc:198:5: note: candidate: ‘std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = long long int; _Alloc = std::allocator<long long int>]’
198 | vector<_Tp, _Alloc>::
| ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/vector.tcc:199:42: note: no known conversion for argument 1 from ‘std::vector<int>’ to ‘const std::vector<long long i