fork(1) download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. struct A
  6. {
  7. A() { cout << '+'; }
  8. ~A() { cout << '-'; }
  9. };
  10.  
  11. int i;
  12.  
  13. int main()
  14. {
  15. cout << '^';
  16.  
  17. a:
  18. cout << '0';
  19. A a;
  20. cout << '1';
  21.  
  22. if (i-- >= 0) {
  23. cout << 'g';
  24. goto a;
  25. }
  26.  
  27. cout << '$';
  28. }
Success #stdin #stdout 0s 4220KB
stdin
Standard input is empty
stdout
^0+1g-0+1$-