Corrected main to return an int