Problem | feast |
---|---|
User | bribritt |
Submission Time | 2023-03-22 20:51:18 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
feast.cpp: In function ‘int32_t main()’:
feast.cpp:44:9: error: ‘dp’ was not declared in this scope
44 | dp[0][i] = max(v[0], (int)0);
| ^~
feast.cpp:49:41: error: ‘dp’ was not declared in this scope
49 | if(j != 0) temp = max(temp, dp[i-1][j-1]);
| ^~
feast.cpp:50:13: error: ‘dp’ was not declared in this scope
50 | dp[i][j] = max(dp[i-1][j], temp) + v[i];
| ^~
feast.cpp:55:24: error: ‘dp’ was not declared in this scope
55 | ans = max(ans, dp[i][K - 1]);
| ^~