The output for the sample test case is showing W.A. Please help to debug the code.
Subset Sum Easy doubt1
@Rooopak_Sharma
Firstly you should initiliase count as 0 for each testcase.
Then you should use vector instead of array for this problem since you want to create different copies of the b array across different recursive calls. The array data is passed by reference and hence will create problems.
I have made the said changes in your code. Please refer to it - https://ide.codingblocks.com/s/107121
Let me know if you have any doubts regarding it.