SubSet sum Easy doubt

https://ide.codingblocks.com/#/s/17953
this is my code… for subset sum . I’m stuck at a point , How do I get rid of it ?
I commented the doubt in the code there

https://hack.codingblocks.com/contests/c/452/136
this is the question link.

@Nitesh Size of output array will be the value of j. And you just need to sum it up to j-1
You can take a look on your modified code below
https://ide.codingblocks.com/#/s/17959