fork(18) download
  1. int add();
  2. int main(){
  3. printf("%d",add());
  4. return 0;
  5. }
  6.  
  7. static int add(){
  8. return 1+1;
  9. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘main’:
prog.c:3:5: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration]
prog.c:3:5: warning: incompatible implicit declaration of built-in function ‘printf’ [enabled by default]
prog.c: At top level:
prog.c:7:12: error: static declaration of ‘add’ follows non-static declaration
prog.c:1:5: note: previous declaration of ‘add’ was here
prog.c:7:12: warning: ‘add’ defined but not used [-Wunused-function]
stdout
Standard output is empty