@damn_me I am clear with push_back, but I am not very clear with sorting.
https://www.dropbox.com/s/fmass1ub4keixg3/Sorting.cpp?dl=0
I tried the above code to sort based on 1st element, 2nd element and so on.
Input:
3 4 5
2 3 4
1 2 3
1 6 7
1 3 5
Correct output:
1 2 3
1 3 5
1 6 7
2 3 4
3 4 5
My wrong output:
1 2 3
1 2 3
1 2 3
1 2 3
1 2 3
I know the way I have used sort is wrong but I wasn’t able to understand the row number technique you did using map.