Problem knapsack
User snorky
Submission Time 2024-01-24 21:26:03
Score 0
Max Time N/A
Max Memory N/A

Compile Error

knapsack.cpp: In function ‘int main()’:
knapsack.cpp:26:14: error: ‘index’ was not declared in this scope; did you mean ‘jndex’?
26 | while(S>=w[index]&&k[jndex]!=0){
| ^~~~~
| jndex