Signature for both of them says they will return 'float' so they need to return float.
Either change the return type in signature and implementation to void or return a float from both of them
As @codewalker said, any function that has a type, except void, must return that specific type of value (or an equivalent) at the end.
Notice how people always write int main( etc.. ) and have areturn 0;.
It's not just because your professor told you it's the proper way to do things, and there is an EXIT_SUCCESS variable in <cstdlib> which gives the same exact value. So pay attention to your other functions as well; you'll need return values. Otherwise you'll keep getting the same errors over and over again.