int foo(); int main(void) { foo(5); return 0; } int foo(int i) { return i; }
Standard input is empty
prog.cpp: In function ‘int main()’:
prog.cpp:5:10: error: too many arguments to function ‘int foo()’
foo(5);
^
prog.cpp:1:5: note: declared here
int foo();
^
Standard output is empty