Odpowiedź:
Wyjaśnienie:
#include <iostream>
#include <vector>
typedef std::vector <int> row;
int main(){
std::vector <row> rows;
int counter = 0;
for (int i = 0; i < 3; i++){
row current_row;
for (int column = 0; column < 5; column++){
current_row.push_back(counter);
counter += 1;
}
rows.push_back(current_row);
}
for (const row &rzad : rows){
for (const int &liczba : rzad){
std::cout << liczba << " ";
}
std::cout << std::endl;
}
}