We can easily convert an array to a vector with the following:
int a[n];
vector<int> b = vector(a, a + n);
I want to work with matrix, what if I want to convert :
int a[n][n];
to
vector<vector<int>> b = ... // from a
with b.size() = n and b[0...n-1].size() = n ?
Alternatively I am okay with a solution converting
std::vector< std::array<int, n> > a;
a.reserve(n);
vector<vector<int>> b = ... // from a