Problem | flappyrabbit |
---|---|
User | bz |
Submission Time | 2024-03-19 21:48:03 |
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:11:37: error: expected ‘;’ before ‘if’
11 | else A.push_back(max(a, A.back()))
| ^
| ;
12 | if (i == 0) B.push_back(b);
| ~~
flappyrabbit.cpp:13:3: error: ‘else’ without a previous ‘if’
13 | else B.push_back(max(b, B.back()));
| ^~~~
flappyrabbit.cpp: In function ‘int min_fuel(int, int)’:
flappyrabbit.cpp:18:16: error: ‘A’ was not declared in this scope
18 | return max(0, A[L]-B[R]);
| ^
flappyrabbit.cpp:18:21: error: ‘B’ was not declared in this scope
18 | return max(0, A[L]-B[R]);
| ^