fork download
  1. #include <stdio.h>
  2.  
  3. char *testfunc() {
  4. }
  5.  
  6. int main(int argc, char *argv[]) {
  7. char *testval;
  8.  
  9. testval = testfunc();
  10. printf("value = %d", testval);
  11.  
  12. return 0;
  13. }
  14.  
  15.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘main’:
prog.c:10:19: error: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘char *’ [-Werror=format=]
  printf("value = %d", testval);
                   ^
prog.c: In function ‘testfunc’:
prog.c:4:1: error: control reaches end of non-void function [-Werror=return-type]
 }
 ^
cc1: all warnings being treated as errors
stdout
Standard output is empty