Problem bingeeating
User jerrielchangjiebin
Submission Time 2024-12-18 11:05:34
Score 0
Max Time N/A
Max Memory N/A

Compile Error

bingeeating.cpp: In function ‘int main()’:
bingeeating.cpp:30:66: error: ‘current_price’ was not declared in this scope
30 | long long cost = dp[i - 1][max(0LL,j - x)] + current_price * x;
| ^~~~~~~~~~~~~
bingeeating.cpp:36:14: error: ‘current_price’ was not declared in this scope
36 | current_price += purchases[i];
| ^~~~~~~~~~~~~
bingeeating.cpp:36:31: error: ‘purchases’ was not declared in this scope
36 | current_price += purchases[i];
| ^~~~~~~~~