Subset Sum easy Recursion

Result 2/4. What’s the error in my code?

CODE: https://ide.codingblocks.com/s/588541

hi… ur approach doesn’t seems to be correct that’s why all test are not passing. basically all u have to do i generate subsets and check if the sum of elements of any particular subset is zero or not. and subset should contain at least one element.
refer this https://ide.codingblocks.com/s/588554
if u still have any doubts msg back here

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.