One weird thing that I observed is this extra line at the top:

int main ()
Then there's the missing closing brace, but perhaps these are just carelessness in providing an example. Next time, if...