In ogni caso, il typedef è sbagliato: hai scritto tree invece di tree *
codice:
typedef int (*treeInInt) (tree *, int);