#include <iostream>
#include <vector>
int main() {
std::vector<std::vector<int>> matrix {
{ 1, 4, 8, 9 },
{ 8, 3, 5, 1 },
{ 7, 0, 6, 2 }
};
int cols = matrix[0].size();
for (int j = 0; j < cols; j++) {
std::cout << matrix[1][j] << " ";
}
}
/*
run:
8 3 5 1
*/