You see, this task is just part, after that i need to count those greater and lesser values, so if i choose to create 100-size-arrays and compiler picks e.g. 20 values that are randomly allocated in original array, that are greater then 50 then I couldnt count those 20-picked values that are allocated in new-100-size-array.
All you need to do for that is add two int variables, initialize them to 0 and increment them whenever you add a value to one of the two arrays. It's really not that hard, you just need to think about it.
Honestly i bet i spent more time with this problem here than you did.