— What the hell...
Debug it. Look it step by step.
— Just resize inner vector
— Because array is data structure of constant size
— I know resizing a vector but how to resize the inner one ?
— mtx[idx].resize(new_size);
— Or in a loop to create rectangle matrix
— But, this I'll have to do for every index