'function' : no function return type; using int as default
The function has not been declared or defined, so the return type is unknown. The compiler uses int as a default return type.
Possible solution