fork(2) download
  1. static void dfs(void);
  2.  
  3.  
  4. int main()
  5. {
  6. dfs(1,2);
  7. }
  8.  
  9. static void dfs(int remain, int last)
  10. {
  11. // dfs
  12. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘main’:
prog.c:6:5: error: too many arguments to function ‘dfs’
prog.c:1:13: note: declared here
prog.c: At top level:
prog.c:9:13: error: conflicting types for ‘dfs’
prog.c:1:13: note: previous declaration of ‘dfs’ was here
prog.c:1:13: error: ‘dfs’ used but never defined [-Werror]
prog.c:9:13: error: ‘dfs’ defined but not used [-Werror=unused-function]
cc1: all warnings being treated as errors
stdout
Standard output is empty