Problem knapsack
User Daddy
Submission Time 2023-11-10 10:02:27
Score 0
Max Time N/A
Max Memory N/A

Compile Error

knapsack.cpp: In function ‘int maximizeValue(int, int, std::vector<std::tuple<int, int, int> >&)’:
knapsack.cpp:18:14: error: ‘S’ was not declared in this scope
18 | return a[S];
| ^