usually it's better to use vector, but in this case where you have an exact number of elements which does not change it's probably better to use basic array
Constructs a container with n elements. Each element is a copy of val.
so you have already 4 empty elements. If you push_back() another value it's appended to the empty value as the element 4, 5, etc. So on line 75 you get only the first empty elements.
To solve that remove (4) on line 90