Problem | books |
---|---|
User | PlayVoltz |
Submission Time | 2024-07-09 23:43:16 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
books.cpp: In function ‘long long int minimum_walk(std::vector<int>, int)’:
books.cpp:17:7: error: no match for ‘operator=’ (operand types are ‘std::vector<long long int>’ and ‘std::vector<int>’)
17 | vect=p;
| ^
In file included from /usr/include/c++/9/vector:72,
from books.h:1,
from books.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 int>&’
199 | operator=(const vector<_Tp, _Alloc>& __x)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
I