prog.c: In function ‘main’:
prog.c:13:33: warning: implicit declaration of function ‘hfunc’ [-Wimplicit-function-declaration]
printf("height is: %f \n", hfunc(v,a));
^~~~~
prog.c:13:25: warning: format ‘%f’ expects argument of type ‘double’, but argument 2 has type ‘int’ [-Wformat=]
printf("height is: %f \n", hfunc(v,a));
^
prog.c:14:32: warning: implicit declaration of function ‘dfunc’ [-Wimplicit-function-declaration]
printf("length is: %f \n", dfunc(v,a));
^~~~~
prog.c:14:25: warning: format ‘%f’ expects argument of type ‘double’, but argument 2 has type ‘int’ [-Wformat=]
printf("length is: %f \n", dfunc(v,a));
^
prog.c: At top level:
prog.c:19:8: error: conflicting types for ‘hfunc’
double hfunc(double v, double a) {
^~~~~
prog.c:13:33: note: previous implicit declaration of ‘hfunc’ was here
printf("height is: %f \n", hfunc(v,a));
^~~~~
prog.c:23:8: error: conflicting types for ‘dfunc’
double dfunc(double v, double a) {
^~~~~
prog.c:14:32: note: previous implicit declaration of ‘dfunc’ was here
printf("length is: %f \n", dfunc(v,a));
^~~~~