I am getting output but with duplicate answer , how to filter out duplicates , please help

code-- https://ide.codingblocks.com/s/203353

Please tell me a way , to filter out these duplicate answers …in this code

@anmol1911
hello Anmol,
declare a set of vector and then push all valid subset in that set and then print.

hi I haven’t covered vectors yet any other way to do so

read it, it hardly takes 10 min to finish

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.