fork(1) download
  1. #include <stdio.h>
  2.  
  3. #define $(x) [&](void)->auto{try{return (x);}catch(...){return decltype(x){};}}()
  4.  
  5. int foo() {
  6. int a[1];
  7. return a[10005000];
  8. }
  9.  
  10. int main() {
  11. $(printf("Hello, kcalb\n"));
  12. $(printf("%d\n", foo()));
  13. $(printf("Hello, kcalb\n"));
  14. }
Success #stdin #stdout 0.01s 5556KB
stdin
Standard input is empty
stdout
Standard output is empty