How can I correct this function compile error?

the first function counts the times the loop has cycled, corresponding to the twice a day prescription. this number of cycles subtracted from the twice total count of days would indicate the remaining number of medication pills in the hopper.

the second function takes that value and divides it by two, so that we get an accurate count of the once-a-day medications.

I need to take the variables, "remainingA" and "remainingB" and turn them into strings, 40,39,38,37........which will be displayed on the LCD so that the total number of pills left will be displayed.

How do I do that?