Problem closing
User Informatics271
Submission Time 2026-05-19 16:15:54
Score 0
Max Time N/A
Max Memory N/A

Compile Error

closing.cpp: In function ‘int max_score(int, int, int, long long int, std::vector<int>, std::vector<int>, std::vector<int>)’:
closing.cpp:27:4: error: no match for ‘operator=’ (operand types are ‘std::vector<long long int>’ and ‘std::vector<int>’)
27 | W=_W;
| ^~
In file included from /usr/include/c++/9/vector:72,
from closing.h:1,
from closing.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>& _