fork 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. A a;
  17.  
  18. a:
  19. cout << '0';
  20. cout << '1';
  21.  
  22. if (i-- >= 0) {
  23. cout << 'g';
  24. goto a;
  25. }
  26.  
  27. cout << '$';
  28. }
Success #stdin #stdout 0s 4368KB
stdin
Standard input is empty
stdout
^+01g01$-