Deleting the int before main did not change anything. Main still returns int, because the compiler assumes int as the return type if none is given. Further, main must return int, to be standard C. Therefore you need to put a return 0 at the end of main. (you can also return something else to tell the OS you got an error, or perhaps some useful information.