fork download
  1. #include <stdio.h>
  2.  
  3. void test(void)
  4. {
  5. printf("We are here\n");
  6. }
  7.  
  8. void main()
  9. {
  10. char buf[18];
  11.  
  12. __asm __emit 0xCC;
  13.  
  14. test();
  15. gets(buf);
  16. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c:8:6: warning: return type of 'main' is not 'int' [-Wmain]
 void main()
      ^
prog.c: In function 'main':
prog.c:12:8: error: expected '(' before '__emit'
  __asm __emit 0xCC;
        ^
prog.c:12:8: error: '__emit' undeclared (first use in this function)
prog.c:12:8: note: each undeclared identifier is reported only once for each function it appears in
prog.c:12:15: error: expected ';' before numeric constant
  __asm __emit 0xCC;
               ^
prog.c:15:2: warning: implicit declaration of function 'gets' [-Wimplicit-function-declaration]
  gets(buf);
  ^
stdout
Standard output is empty