#include <iostream>
using namespace std;
class Foo
{
double m_uninitializedField;
double m_normalField;
double m_isDirty;
public:
Foo(): m_isDirty(false), m_normalField(0)
{
}
};
int main() {
// your code goes here
Foo* aPtr = new Foo();
Foo* bPtr = new Foo();
*bPtr = *aPtr; // Underflow error
delete aPtr;
delete bPtr;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKY2xhc3MgRm9vCnsKCWRvdWJsZSBtX3VuaW5pdGlhbGl6ZWRGaWVsZDsKCWRvdWJsZSBtX25vcm1hbEZpZWxkOwoJZG91YmxlIG1faXNEaXJ0eTsKcHVibGljOgoJRm9vKCk6IG1faXNEaXJ0eShmYWxzZSksIG1fbm9ybWFsRmllbGQoMCkKCXsKCX0KfTsKCmludCBtYWluKCkgewoJLy8geW91ciBjb2RlIGdvZXMgaGVyZQoJRm9vKiBhUHRyID0gbmV3IEZvbygpOwoJRm9vKiBiUHRyID0gbmV3IEZvbygpOwoJCgkqYlB0ciA9ICphUHRyOyAvLyBVbmRlcmZsb3cgZXJyb3IKCQoJZGVsZXRlIGFQdHI7CglkZWxldGUgYlB0cjsKCXJldHVybiAwOwp9