Why are you not allowed to call the main function? C++03 3.6.1.3: The function main shall not be used (3.2) within a program. …