Problem flappyrabbit
User bz
Submission Time 2024-03-19 22:14:50
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:6:18: error: ‘N’ was not declared in this scope
6 | for (int i=1; i<N; i++) A[i] = max(A[i-1], A[i]);
| ^
flappyrabbit.cpp:7:13: error: ‘N’ was not declared in this scope
7 | for (int i=N-2; i>=1; i--) B[i] = min(B[i+1], B[i]);
| ^
flappyrabbit.cpp: In function ‘int min_fuel(int, int)’:
flappyrabbit.cpp:11:16: error: ‘A’ was not declared in this scope
11 | return max(0, A[L]-B[R]);
| ^
flappyrabbit.cpp:11:21: error: ‘B’ was not declared in this scope
11 | return max(0, A[L]-B[R]);
| ^