Hi all, I get an error message when I run this code, can anyone tell me why? Have printed the error messages at the bottom
warning: type mismatch with previous implicit declarationCode:main() { double x; double y; scanf("%f", &x); scanf("%f", &y); printf("f(x,y)=%f", f(x, y)); return 0; } double f(double dumx, double dumy) { double result; result = (-(3.0*dumy)-(dumx*dumx)+(dumx/3.0)*(1.0/3.0)); return result; }
warning: previous implicit declaration of `f'
warning: `f' was previously implicitly declared to return `int