fork(13) download
  1. #include <stdio.h>
  2.  
  3. void main()
  4.  
  5. {
  6.  
  7. m();
  8.  
  9. }
  10.  
  11. void m()
  12.  
  13. {
  14.  
  15. printf("hi");
  16.  
  17. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c:3:6: error: return type of ‘main’ is not ‘int’ [-Werror=main]
 void main()
      ^
prog.c: In function ‘main’:
prog.c:7:5: error: implicit declaration of function ‘m’ [-Werror=implicit-function-declaration]
     m();
     ^
prog.c: At top level:
prog.c:11:6: error: conflicting types for ‘m’ [-Werror]
 void m()
      ^
prog.c:7:5: note: previous implicit declaration of ‘m’ was here
     m();
     ^
cc1: all warnings being treated as errors
stdout
Standard output is empty