You've forgotten the return value and closing brace on your main function.

The minimum C program skeleton is...
Code:
int main (void)
  {   

// code goes in here

    return 0;
}