Вы не говорите нам достаточно, чтобы дать полный ответ
Decide size of share for each child, also determine what to do with any "remainder"
For each child
allocate an array sufficient to hold the required number of value
populate the array
На какой бит вы застряли?