Return error ( subset sum easy)

here condition is wrong
image
correct one is
sum==0
NOT SINGLE EQUAL TO

also in your code there is one mistake
your code will always print YES because you are not excluding empty subset

Reference Code