So simple code like:
int n;
cin >> n;
int s[n], p[2*(n-1)][3];
I have to translate to:
int n;
cin >> n;
vector<int> s(n, 0);
vector<vector<int>> p(2 * (n - 1), vector<int>(3));
I would like to see something like:
int n;
cin >> n;
mat s(n), p(2*(n-1), 3);
I definitely do not want to use new\make_unique
and std::array
+std::vector
mix for such simple stuff. Two lines are an ugly mess IMHO so I seeek for a way to keep C like sintax.
So what is a workaround? Any define/standard header/copy-pastable STL based C++ type?