#include <iostream>
using namespace std;
class Rectangle {
int width, height;
public:
void set_values (int,int);
int area() {return width*height;}
};
void Rectangle::set_values (int x, int y) {
width = x;
height = y;
}
Rectangle* getRect()
{
return nullptr;
}
int main () {
Rectangle* rect = getRect();
rect->set_values (3,4);
cout << "area: " << rect->area();
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKY2xhc3MgUmVjdGFuZ2xlIHsKICAgIGludCB3aWR0aCwgaGVpZ2h0OwogIHB1YmxpYzoKICAgIHZvaWQgc2V0X3ZhbHVlcyAoaW50LGludCk7CiAgICBpbnQgYXJlYSgpIHtyZXR1cm4gd2lkdGgqaGVpZ2h0O30KfTsKCnZvaWQgUmVjdGFuZ2xlOjpzZXRfdmFsdWVzIChpbnQgeCwgaW50IHkpIHsKICB3aWR0aCA9IHg7CiAgaGVpZ2h0ID0geTsKfQoKUmVjdGFuZ2xlKiBnZXRSZWN0KCkKewogcmV0dXJuIG51bGxwdHI7Cn0KCmludCBtYWluICgpIHsKICBSZWN0YW5nbGUqIHJlY3QgPSBnZXRSZWN0KCk7CiAgcmVjdC0+c2V0X3ZhbHVlcyAoMyw0KTsKICBjb3V0IDw8ICJhcmVhOiAiIDw8IHJlY3QtPmFyZWEoKTsKICByZXR1cm4gMDsKfQ==