#include <iostream>
#include <vector>
using namespace std;
template <typename T>
void PRINT(const vector< vector<T> > &M) {
for (unsigned int r=0; r<M.size(); r++) {
for (unsigned int c=0; c<M[r].size(); c++)
cout << "\t" << M[r][c];
cout << endl;
}
}
int main() {
unsigned int rows, cols;
cout << "Please specify the size of the vector in rows and columns: ";
cin >> rows >> cols;
double ini;
cout << "Please specify the initial value of each element: ";
cin >> ini;
vector<vector<double> > W(rows, vector<double>(cols, ini));
PRINT(W);
return(0);
}