Problem | 01knapsack |
---|---|
User | Henries |
Submission Time | 2024-11-04 16:56:27 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
01knapsack.cpp: In function ‘long long int solve(long long int, long long int)’:
01knapsack.cpp:20:29: error: ‘i’ was not declared in this scope
20 | current2 = solve(x-weight[i],index-1) + value[index];
| ^