Sum it up Backtracking

My code is giving the correct combinations but the combinations are repeating.what change can i make in my code??Plz suggest

@aryamaan1011 first of all sort the input vector and then store the vector answer in a set of vectors, and print all answers later on,
set will ensure that duplicates are avoided.

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.