return 0

should have a return value in main().