"A program must contain a function called main(). This function is the designated start of the program. The function is not predefined by the compiler, it cannot be overloaded, and its type is implementation dependent." The Annotated C++ Reference Manual, M. A. Ellis & B. Stroustrup, Addison-Wesley, 1986, Section 3.4.
Indeed, it is a user-defined function. You will find it somewhere in the source code, in a .cpp file.
Also read
Where the main() function exists in c++ ? Is it a user defined function?[
^]