your main function is not legal in C: it must take two arguments and return an integer (0 most likely).