Merge the mutiple 2D matrixes vertically

Hello fellows,
I am trying to merge a few matrices that I obtained from the function MatrixObtain. The function works fine. The function MatrixObtain returns 2D matrix always with the same number of column but the row number can change.
For example in the first iteration I obtain
[[ 1 1 5]
[ 2 7 9 ]
[ 1 9 3]]
in the second

[[ 0 1 5]
[ 4 7 2 ]]
in third second
[[ 0 1 5]
[ 3 7 2 ]
[ 0 8 2 ]
[ 6 7 2 ]

Finally I should have;
[[ 1 1 5]
[ 2 7 9 ]
[ 1 9 3 ]
[ 0 1 5]
[ 4 7 2 ]
[ 0 1 5]
[ 3 7 2 ]
[ 0 8 2 ]
[ 6 7 2 ]]

How can I do that?
Thank you so much

1
2
3
4
5
6
7
  	
            for (int t = 0; t < 3; t++) {

		vector<vector<int>> final = MatrixObtain(row);
	
	}
Last edited on
If there is a variable named row that is in scope on line 4 you're not setting it on line 16.
Topic archived. No new replies allowed.