fork download
  1. #define NAME hello.c
  2. #define DESCRIP many languages at once (tcl, perl 4 & 5, sh, C)
  3. #define AUTHOR Jeremy Dilatush
  4. #define DATE 7/31/96
  5. #define dummy \
  6. eval qq[qq? 2> /dev/null
  7. #if 0
  8. #\
  9. echo 'Hello world!'; exit 0 # shell part
  10. puts "Hello world!"; exit 0
  11. #endif
  12.  
  13. /* C part */
  14.  
  15. #include <stdio.h>
  16.  
  17. int main(void)
  18. {
  19. printf ("Hello world!\n");
  20. return 0;
  21. }
  22.  
  23. #define dummy2(perl) \
  24. ?]; print "Hello world!\n"; exit 0 # perl part
  25.  
  26. /* C part */
  27.  
  28. #include <stdio.h>
  29.  
  30. int main(void)
  31. {
  32. printf ("Hello world!\n");
  33. return 0;
  34. }
  35.  
  36. #define dummy2(perl) \
  37. ?]; print "Hello world!\n"; exit 0 # perl part
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.go:1: package statement must be first
prog.go:1: syntax error: unexpected $undefined
prog.go:9: missing '
prog.go:10: non-declaration statement outside function body
prog.go:20: non-declaration statement outside function body
prog.go:21: syntax error: unexpected }
prog.go:24: non-declaration statement outside function body
prog.go:24: too many errors
stdout
Standard output is empty