Problem | knapsack |
---|---|
User | Daddy |
Submission Time | 2023-11-10 10:02:12 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
knapsack.cpp: In function ‘int maximizeValue(int, int, std::vector<std::tuple<int, int, int> >&)’:
knapsack.cpp:6:19: error: ‘s’ was not declared in this scope
6 | vector<int> a(s+1,0);
| ^
knapsack.cpp:18:14: error: ‘S’ was not declared in this scope
18 | return a[S];
| ^