When a compiler sees a function, it will first look for the prototype of the function. If there is no prototype, it will look for the definition part of the function.
In addition, in C, in C++, if the defined function does not specify the return type, it will not be compiled.