prog.c: In function 'ler_paciente':
prog.c:25:2: warning: implicit declaration of function 'gets' [-Wimplicit-function-declaration]
gets(p.nome);
^
prog.c: In function 'calcular':
prog.c:53:9: error: incompatible types when returning type 'paciente (*)(paciente *, int) {aka struct paciente (*)(struct paciente *, int)}' but 'paciente {aka struct paciente}' was expected
return calcular;
^
prog.c: In function 'main':
prog.c:88:3: warning: implicit declaration of function '__fpurge' [-Wimplicit-function-declaration]
{__fpurge(stdin);
^
prog.c:96:11: warning: passing argument 1 of 'calcular' from incompatible pointer type [-Wincompatible-pointer-types]
calcular(&grupo,tam);
^
prog.c:43:10: note: expected 'paciente * {aka struct paciente *}' but argument is of type 'paciente ** {aka struct paciente **}'
paciente calcular(paciente* grupo, int tam){
^
prog.c: In function 'calcular':
prog.c:55:1: warning: control reaches end of non-void function [-Wreturn-type]
};
^