Problem zanesgift
User ThePwo
Submission Time 2023-12-23 10:19:45
Score 0
Max Time N/A
Max Memory N/A

Compile Error

zanesgift.cpp: In function ‘int32_t main()’:
zanesgift.cpp:14:36: error: expected ‘;’ before ‘long’
14 | dp[i + 1] = max(dp[i], dp[i + 1])
| ^
| ;
zanesgift.cpp:16:7: error: ‘v’ was not declared in this scope
16 | if (v <= n) dp[v] = max(dp[v], dp[i] + a[i] + 1);
| ^