prog.c:4:1: error: return type defaults to 'int' [-Werror=implicit-int]
f(double x){
^
prog.c:13:5: error: expected ';', ',' or ')' before 'return'
return (( f(x+dx) - f(x) ) / dx);
^
prog.c:15:6: error: return type of 'main' is not 'int' [-Werror=main]
void main(){
^
prog.c: In function 'main':
prog.c:24:12: error: implicit declaration of function 'derivatef' [-Werror=implicit-function-declaration]
df_x = derivatef(2, 0.001);
^
cc1: all warnings being treated as errors