Thank you for your answer, i have still so much to learn, i will reorganise my code tomorrow and read more tutorials on dynamic allocation, thanks again!
Oh and btw, the problem is not in not compiling, it compiles fine. I should explain it more. It's just that both child and organism can eat only the same food, if for example child is away from food and organism is in the zone where he can sense food and wants to eat it (it should go to food coordinates) but he doesn't want to, something bugs him, he starts twitching madly, but when both child and organism are in the same zone when they can sense food, than both can eat but only the same food. They can move around independently but they cannot eat independently. Maybe i should take a little bit different approach to writing this.