Subset sum easy

this question is giving me the wrong answer always.I have tried a lot to solve it in different ways.
please check and give me the correct approach
code link - https://ide.codingblocks.com/s/249013

@avinashmallik2017 your code is giving output as β€œYes” even if there is no such subset possible,
for eg {1,2,3}

@avinashmallik2017 this is my code i used a count variable to ensure that the empty subset was not being considered.