0-1 knapsack problem

1 test case is failed.can u help me to rectify it?

this is my link https://ide.codingblocks.com/s/300272

@gokulmaran your code is getting AC and a score of 100 with me, refresh your page and try submitting it again.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.