int main(){ display(); return 0; } void display(){ }
Standard input is empty
cc1: warnings being treated as errors prog.c: In function ‘main’: prog.c:2: error: implicit declaration of function ‘display’ prog.c: At top level: prog.c:8: error: conflicting types for ‘display’ prog.c:2: error: previous implicit declaration of ‘display’ was here prog.c: In function ‘display’: prog.c:9: error: implicit declaration of function ‘printf’ prog.c:9: error: incompatible implicit declaration of built-in function ‘printf’
Standard output is empty