main() should be declared as either:
int main(void)
int main(int argc, char **argv)
Or equivalent. For example
int main(int argc, char *argv[])
is equivalent to the second one.
main() should be declared as either:
int main(void)
int main(int argc, char **argv)
Or equivalent. For example
int main(int argc, char *argv[])
is equivalent to the second one.