Problem overtaking
User jovan
Submission Time 2025-07-13 21:45:04
Score 0
Max Time N/A
Max Memory N/A

Compile Error

overtaking.cpp: In function ‘void init(long int, long int, std::vector<long long int>, std::vector<int>, long int, long int, std::vector<long int>)’:
overtaking.cpp:16:9: error: no match for ‘operator=’ (operand types are ‘std::vector<long int>’ and ‘std::vector<int>’)
16 | W = w;
| ^
In file included from /usr/include/c++/9/vector:72,
from /usr/include/c++/9/functional:62,
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 overtaking.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 int; _Alloc = std::allocator<long int>]’
198 | vector<_Tp, _Alloc>::