I expect it decided you were using old-style definitions, and sorted it out for you. For portability's sake, it's best to always define everything. Technically, main should return an int, but oh well...