If
std::vector
is a better solution, why not show that in the answer instead?