Problem knapsack
User Daddy
Submission Time 2023-11-10 10:27:29
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:12:18: error: expected initializer before ‘)’ token
12 | vector<int> a);
| ^
knapsack.cpp:26:21: error: ‘a’ was not declared in this scope
26 | a[j]=max(a[j],a[j-z*y]+z*x);
| ^
knapsack.cpp:36:12: error: ‘a’ was not declared in this scope
36 | return a[s];
| ^