#include <iostream>
struct Type {
int a, b, c;
int& ref;
Type(int m) : a(m), b(m), c(m), ref(a) { }
};
int main() {
Type a(42);
Type b(a);
std::cout << &a.ref << " " << &b.ref << std::endl;
std::cout << &a.a << " " << &b.a << std::endl;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKc3RydWN0IFR5cGUgewogICAgaW50IGEsIGIsIGM7CiAgICBpbnQmIHJlZjsKICAgIFR5cGUoaW50IG0pIDogYShtKSwgYihtKSwgYyhtKSwgcmVmKGEpIHsgfQp9OwoKaW50IG1haW4oKSB7CiAgICBUeXBlIGEoNDIpOwogICAgVHlwZSBiKGEpOwoKICAgIHN0ZDo6Y291dCA8PCAmYS5yZWYgPDwgIiAgIiA8PCAmYi5yZWYgPDwgc3RkOjplbmRsOwogICAgc3RkOjpjb3V0IDw8ICZhLmEgPDwgIiAgIiA8PCAmYi5hIDw8IHN0ZDo6ZW5kbDsKfQ==