>>496
std::vector<int> a[N];
for (int i = 0; i < N; ++i)
{
 a[i].resize(N - i);
}