Problem | flappyrabbit |
---|---|
User | Fr5ctal |
Submission Time | 2025-06-29 11:32:07 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
flappyrabbit.cpp: In function ‘int min_fuel(int, int)’:
flappyrabbit.cpp:35:21: error: invalid initialization of non-const reference of type ‘std::vector<int>&’ from an rvalue of type ‘std::vector<int>*’
35 | return max(slicing(&a, L, R)) - x;
| ^~
flappyrabbit.cpp:9:34: note: in passing argument 1 of ‘std::vector<int> slicing(std::vector<int>&, int, int)’
9 | vector<int> slicing(vector<int>& arr,
| ~~~~~~~~~~~~~^~~