-compiling C:"The location basically"
!project2.cpp(32,1) lvalue required
!project2.cpp(33,1)pointer to structure required on left side of -> or ->*
!project2.cpp(36,1)declaration terminated incorrectly
At line 31, you're declaring a function called r, that returns a pointer to a kid. The compiler warning for line 32 indicates that you're trying to use a function name as a variable whose value can be set.
The compiler warning for line 33 is for much the same reason - you're trying to use a function name as a pointer variable.