fork(1) download
  1. void f()
  2. {
  3. return ;
  4. }
  5.  
  6. void f(void);
  7.  
  8. int main(void)
  9. {
  10. f(1);
  11. }
  12.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c:6:9: warning: prototype for ‘f’ follows non-prototype definition
 void    f(void);
         ^
prog.c: In function ‘main’:
prog.c:10:5: error: too many arguments to function ‘f’
     f(1);
     ^
prog.c:1:9: note: declared here
 void    f()
         ^
stdout
Standard output is empty