Sum It Up Problem

input:
15
78 7 62 28 73 68 94 88 65 61 59 21 92 4 97
90

my output:
28 62
4 21 65
7 21 62

correct output:
4 21 65
7 21 62
28 62

How do i sort it…

dont use vector of string instead use vector of int.
and then set will order them automatically in required order.

can you please help me with, how to do it with int…


check this,
i have just replaced string with vector.

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.