int add(); int main(){ return 0; } static int add(){ return 1+1; }
Standard input is empty
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]
Standard output is empty