The scenario described suggests that the program successfully executed some part of its code (outputting the result of two functions) but then encountered an issue afterward, which caused an error message. This indicates a problem that arises during the execution of the program rather than at the time of writing the code.
Given this information, the appropriate type of error that has occurred is a runtime error.
So the answer is: runtime error.