this is link what is wrong in it?
Whats wrong in code
Hey @pranjalarora98
Ur code will always return true because u will also consider a case of empty subset which will always have sum 0
So mantain a boolean variable in arguments for that if u have picked some element or not
something like dis? https://ide.codingblocks.com/s/378914
But then also it should throw dump error right?
Hey @pranjalarora98
Mentioned the changes in ur code : https://ide.codingblocks.com/s/378996
U missed a base case that’s why segmentation error was coming 
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.