fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. class T
  5. {
  6. public:
  7. void print()
  8. {
  9. std::cout << "Hello world!" << std::endl;
  10. }
  11. };
  12.  
  13. int main()
  14. {
  15. int i = 0;
  16. while(true)
  17. {
  18. T* t = new T();
  19. delete t;
  20. if (i > 60) break;
  21. i++;
  22. }
  23. }
Success #stdin #stdout 0s 3468KB
stdin
Standard input is empty
stdout
Standard output is empty