Problem | sunshine |
---|---|
User | jeongwonho64 |
Submission Time | 2023-11-28 17:58:32 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
sunshine.cpp: In function ‘long long int knapsack(long long int, long long int)’:
sunshine.cpp:177:10: error: invalid types ‘long long int[long long int]’ for array subscript
177 | if(w-w[x]>=0) ans = max(ans,knapsack(x-1,w-w[x])+v[x]);
| ^
sunshine.cpp:177:48: error: invalid types ‘long long int[long long int]’ for array subscript
177 | if(w-w[x]>=0) ans = max(ans,knapsack(x-1,w-w[x])+v[x]);
| ^