Ok... I know this is only text formatting but
int
main (void)
is far less easily read than
int main(void)
The "trick" of putting the return type above the function name is often used on Unix or Linux systems because it supposedly speeds up text searches in source files. This is not the case on Windows systems and especially not in a nice ide like POIDE... Make your code more readable... don't mess with silly unix tricks.
And don't forget that an int return value means your main function ends with return 0; or an errorlevel....
The minimal skeleton is...
int main (void)
{
// your code here
return 0;
}