Dont why output not showing

In this subset sum problem I dont know why output is not possible

https://ide.codingblocks.com/s/570985 I improved the code its still failing test case 3

hello @adityamehrotra275

in the question u are asked about subset but u are only checking subarray.

But isn’t subarray and subset the same?

…

no, in subset u can pick any number of elements they need not to be contigous.

Thanks I understood so I will have to recurse it like subset of string and check all combinations

yes…
…
…