fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. class A
  5. {
  6. public:
  7. A() {}
  8. A& operator=(const A& a) {*this = a; return *this; }
  9. };
  10.  
  11. int main()
  12. {
  13. A a;
  14. A b;
  15. a = b;
  16. return 0;
  17. }
Runtime error #stdin #stdout 0s 10952KB
stdin
Standard input is empty
stdout
Standard output is empty