Problem snack
User VNHbest
Submission Time 2024-04-10 02:40:56
Score 0
Max Time N/A
Max Memory N/A

Compile Error

snack.cpp: In function ‘int main()’:
snack.cpp:33:2: error: expected ‘}’ before ‘else’
33 | else {
| ^~~~
snack.cpp:31:21: note: to match this ‘{’
31 | if (dp[n - 1] < 0) {
| ^