Problem | 01knapsack |
---|---|
User | sikai004 |
Submission Time | 2024-08-03 12:11:54 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
01knapsack.cpp: In function ‘long long int knapsack(long long int, long long int)’:
01knapsack.cpp:17:69: error: incompatible types in assignment of ‘const long long int’ to ‘long long int [1005]’
17 | knapsackans[n,w]=max(knapsack(n-1,w),(knapsack(n-1,w-W[n])+V[n]))
| ^