Problem 01knapsack
User sikai004
Submission Time 2024-08-03 11:47:21
Score 0
Max Time N/A
Max Memory N/A

Compile Error

01knapsack.cpp: In function ‘long long int knapsack(long long int, long long int)’:
01knapsack.cpp:13:12: error: ‘knapsackans’ was not declared in this scope; did you mean ‘knapsack’?
13 | if(knapsackans[n-1][w]==-1){
| ^~~~~~~~~~~
| knapsack