int array[][];
int main()
{ array = {{1,2,3,4},{1,2,3,4}}; }
int n, m;
int **a;
//read n
//read m
a = (int **)malloc(sizeof(int *) * n);
for (int i = 0; i < m; i++)
{
a[i] = (int *)malloc(sizeof(int) * m);
}
for (int i = 0; i < n; i++)
{
for (int j = 0; j < m; j++)
{
a[i][j] = 1;
}
}
std::vector< std::vector<int> > a;
int n, m;
//read n
//read m
for (int i = 0; i < n; i++)
{
std::vector<int> v(m);
for (int j = 0; j < m; j++)
{
v[j] = (i + j);
}
a.push_back(v);
}
std::cout << a[3][3] << std::endl;