#include <iostream>
using namespace std;
class X{
int a;
public:
X(int a) : a(a){std::cout<<"in constructor";}
// X(const X& x) : a(x.a){std::cout<<"in copy constructor";}
X(const X& x) = delete;
X& operator=(const X& x){
std::cout<<"in assignment";
a = x.a;
return *this;
}
};
int main(int argc, char *argv[])
{
X x1(3);
X x2(5);
x1 = x2;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKY2xhc3MgWHsKaW50IGE7CnB1YmxpYzoKICAgWChpbnQgYSkgOiBhKGEpe3N0ZDo6Y291dDw8ImluIGNvbnN0cnVjdG9yIjt9CiAgIC8vIFgoY29uc3QgWCYgeCkgOiBhKHguYSl7c3RkOjpjb3V0PDwiaW4gY29weSBjb25zdHJ1Y3RvciI7fQogICBYKGNvbnN0IFgmIHgpID0gZGVsZXRlOwogICBYJiBvcGVyYXRvcj0oY29uc3QgWCYgeCl7CiAgICAgc3RkOjpjb3V0PDwiaW4gYXNzaWdubWVudCI7CiAgICAgYSA9IHguYTsKICAgICByZXR1cm4gKnRoaXM7Cn0KfTsKCgppbnQgbWFpbihpbnQgYXJnYywgY2hhciAqYXJndltdKQp7CiAgICBYIHgxKDMpOwogICAgWCB4Mig1KTsKICAgIHgxID0geDI7CiAgICByZXR1cm4gMDsKfQo=