fork download
  1. int foo();
  2.  
  3. int main(void)
  4. {
  5. foo(5);
  6. return 0;
  7. }
  8.  
  9. int foo(int i)
  10. {
  11. return i;
  12. }
  13.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
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();
     ^
stdout
Standard output is empty