Problem lemonade
User ensonchew
Submission Time 2025-12-12 15:22:47
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lemonade.cpp: In function ‘int main()’:
lemonade.cpp:11:9: error: ‘n’ was not declared in this scope
11 | int dp[n+1][100005];
| ^
lemonade.cpp:12:9: error: ‘dp’ was not declared in this scope
12 | memset(dp, 60, sizeof(dp));
| ^~
lemonade.cpp:19:13: error: ‘chmin’ was not declared in this scope
19 | chmin(dp[i+1][j+T[i]], dp[i][j]+C[i]);
| ^~~~~
lemonade.cpp:23:23: error: ‘d’ was not declared in this scope
23 | if (dp[n][i]<=d){
| ^