How can I correct this function compile error?

T-57:
The question is not whether or not i should use a function, the question is how to take the value of the function and make it into a displayable set of digits.

As well as how to fix these new compile messages.

Answer this, and I think you'll see the answer to your question. What is remainingA? Is it an int or a function? Yes is the wrong answer. So is both.