Sum it Up not accepted

CodeLink-https://ide.codingblocks.com/s/230298
not able to find where the mistake. Can you help me

@imsaurabh hey you have to print unique combinations so remove duplicates in starting from input vector or array.Hope you get it.

@rishabhmahajan546 hey if i remove duplicates from array then how i can make [1,1,6] this combination while the given test case [10 1 2 7 6 1 5] in input

@imsaurabh hey actually removing of duplicates is for not getting same combination in final answer ,check this code you will get what I am trying to say:

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.