| Problem | flappyrabbit |
|---|---|
| User | kenkunkin |
| Submission Time | 2025-11-10 09:14:45 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
flappyrabbit.cpp: In function ‘void init(std::vector<int>, std::vector<int>)’:
flappyrabbit.cpp:14:20: error: no match for ‘operator+’ (operand types are ‘int’ and ‘std::vector<int>’)
14 | numBlocks = (n + B - 1) / B;
| ~ ^ ~
| | |
| int std::vector<int>
In file included from /usr/include/c++/9/bits/stl_algobase.h:67,
from /usr/include/c++/9/vector:60,
from flappyrabbit.h:1,
from flappyrabbit.cpp:1:
/usr/include/c++/9/bits/stl_iterator.h:423:5: note: candidate: ‘template<class _Iterator> constexpr std::reverse_iterator<_Iterator> std::operator+(typename std::reverse_iterator<_Iterator>::difference_type, const std::reverse_iterator<_Iterator>&)’
423 | operator+(typename reverse_iterator<_Iterator>::difference_type __n,
| ^~~~~~~~
/usr/include/c++/9/bits