Problem 01knapsack
User j0ashhh
Submission Time 2026-02-20 16:16:52
Score 0
Max Time N/A
Max Memory N/A

Compile Error

01knapsack.cpp: In function ‘int knapsack(int, std::vector<int>, std::vector<int>)’:
01knapsack.cpp:20:13: error: ‘i’ was not declared in this scope
20 | cout << dp[i][j];
| ^
01knapsack.cpp:20:16: error: ‘j’ was not declared in this scope
20 | cout << dp[i][j];
| ^