fork download
  1. #include <iostream>
  2.  
  3. class Foo {
  4. public:
  5. int operator=(const Foo& c) {
  6. return 666;
  7. }
  8. };
  9.  
  10. int main() {
  11. // your code goes here
  12. Foo a, b;
  13.  
  14. std::cout << (a = b);
  15.  
  16. return 0;
  17. }
Success #stdin #stdout 0s 3460KB
stdin
Standard input is empty
stdout
666