prog.cpp:3:5: warning: ‘int main(int)’ takes only zero or two arguments [-Wmain]
int main(int a)
^
prog.cpp:8:5: warning: first argument of ‘int main(char*)’ should be ‘int’ [-Wmain]
int main(char *a)
^
prog.cpp:8:5: warning: ‘int main(char*)’ takes only zero or two arguments [-Wmain]
prog.cpp: In function ‘int main(char*)’:
prog.cpp:8:17: error: declaration of C function ‘int main(char*)’ conflicts with
int main(char *a)
^
prog.cpp:3:5: error: previous declaration ‘int main(int)’ here
int main(int a)
^
prog.cpp: At global scope:
prog.cpp:13:5: warning: second argument of ‘int main(int, int)’ should be ‘char **’ [-Wmain]
int main(int a, int b)
^
prog.cpp: In function ‘int main(int, int)’:
prog.cpp:13:22: error: declaration of C function ‘int main(int, int)’ conflicts with
int main(int a, int b)
^
prog.cpp:8:5: error: previous declaration ‘int main(char*)’ here
int main(char *a)
^
prog.cpp:13:22: error: declaration of C function ‘int main(int, int)’ conflicts with
int main(int a, int b)
^
prog.cpp:3:5: error: previous declaration ‘int main(int)’ here
int main(int a)
^
prog.cpp: In function ‘int main()’:
prog.cpp:18:10: error: declaration of C function ‘int main()’ conflicts with
int main()
^
prog.cpp:13:5: error: previous declaration ‘int main(int, int)’ here
int main(int a, int b)
^
prog.cpp:18:10: error: declaration of C function ‘int main()’ conflicts with
int main()
^
prog.cpp:8:5: error: previous declaration ‘int main(char*)’ here
int main(char *a)
^
prog.cpp:18:10: error: declaration of C function ‘int main()’ conflicts with
int main()
^
prog.cpp:3:5: error: previous declaration ‘int main(int)’ here
int main(int a)
^
prog.cpp:21:15: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
main("C++");
^