Problem coinbag
User PerihelionfromAphelion
Submission Time 2026-06-09 22:07:03
Score 0
Max Time N/A
Max Memory N/A

Compile Error

coinbag.cpp: In function ‘int main()’:
coinbag.cpp:12:20: error: ‘k’ was not declared in this scope
12 | for (j = 1; j <= k; j++) {
| ^
coinbag.cpp:16:16: error: ‘k’ was not declared in this scope
16 | cout << dp[n][k];
| ^