prog.c:1:12: error: unknown type name ‘tipo_arvore’
int total (tipo_arvore *raiz)
^~~~~~~~~~~
prog.c:17:22: warning: implicit declaration of function ‘total’ [-Wimplicit-function-declaration]
int total_esquerda = total(raiz->esq);
^~~~~
prog.c:17:28: error: ‘raiz’ undeclared here (not in a function)
int total_esquerda = total(raiz->esq);
^~~~