Problem flappyrabbit
User SheepHeads
Submission Time 2026-03-13 18:04:31
Score 0
Max Time N/A
Max Memory N/A

Compile Error

flappyrabbit.cpp: In function ‘void init(std::vector<int>, std::vector<int>)’:
flappyrabbit.cpp:8:10: error: no match for ‘operator=’ (operand types are ‘std::vector<long long int>’ and ‘std::vector<int>’)
8 | lower = A;
| ^
In file included from /usr/include/c++/9/vector:72,
from flappyrabbit.h:1,
from flappyrabbit.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)
|