Problem ducks
User oogabooga
Submission Time 2025-08-01 09:02:51
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ducks.cpp: In function ‘long long int max_movement(int, int, std::vector<int>, std::vector<int>, std::vector<int>, std::vector<int>)’:
ducks.cpp:110:9: error: no match for ‘operator=’ (operand types are ‘std::vector<long long int>’ and ‘std::vector<int>’)
110 | X = x;
| ^
In file included from /usr/include/c++/9/vector:72,
from ducks.h:1,
from ducks.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<