Problem coinbag
User Fjerds
Submission Time 2026-07-22 16:37:07
Score 0
Max Time N/A
Max Memory N/A

Compile Error

coinbag.cpp: In function ‘int32_t main()’:
coinbag.cpp:21:35: error: expected ‘;’ before ‘else’
21 | if (w[i] <= j) dp[i][j] = v[i] else dp[i][j] = 0;
| ^~~~~
| ;