Your mistake is right here:
Code:
float y, float f(float);
You can't define functions like that. Try moving
float f(float); to somewhere above main (on a line by itself) and changing that original line to just
float y;
Also, you should add
return 0; to the end of your main function.