function '%s' must return a value but has no return statement
Function declares return type but has no return statement
Add a return statement with a value matching the declared return type.