Firstly, this:
people peoples[num_numbers];
Is non-standard extension. Secondly, here:
for(int i = 0; i<= num_numbers; i++)
// ^^^^^^^^^^^^^^^
You're going out of bounds, because array with size num_numbers
has indexes from 0
to num_numbers - 1
.