Update print.c

Fixed some compilation errors