Subset Sum Easy


i had tried this code and it’s working in my compiler, but it is not working in coding blocks ide. Kindly guide me - where did i go wrong in this code?

Modified Code

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.

Sir the code is not giving us the correct output

hi @mvermav19
refer this -->

okay sir understood this code now!
Thank you!

1 Like

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.