2 testcases failed

code:

@n.nishchaya2000 for input this --------
15
57 79 16 3 83 70 78 14 5 8 36 51 47 93 72
86
your output --------
14 72
16 70
3 36 47
3 5 78
3 5 8 70
3 83
5 14 16 51
5 8 16 57
8 78
ans --------
3 5 8 70
3 5 78
3 36 47
3 83
5 8 16 57
5 14 16 51
8 78
14 72
16 70
as you can see it should be in sorted order
i hope your doubt is cleared if yes dont forget to mark it as resolved :smiley:

how i will sort this if i using set then i am unable to de

dont use set use vector of strings to store and then use map to remove duplicates @n.nishchaya2000

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.