You declared the function f1 as
but the definition specify that the function receive one parameter:
And, also, the return value is of
void type.
As you say, the function has to return the difference between 2 variables, so it should have 2 parameters, and return an
int value: