Incorrect values returned from functions, have 2 warnings I don't understand

Printable View