#include <stdio.h>
int main()
{
union {
unsigned x;
struct {
unsigned a:1;
unsigned b:1;
unsigned c:1;
unsigned d:1;
};
} u;
union {
unsigned xx;
struct {
unsigned aa:1;
unsigned bb:1;
unsigned cc:1;
unsigned dd:1;
};
} uu;
unsigned FLAG;
u.a = u.b = u.c = u.d = 0;
uu.aa = uu.bb = uu.cc = uu.dd = 0;
FLAG = ~u.x & uu.xx;
uu.dd = 1;
FLAG = ~u.x & uu.xx;
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbigpCnsKCXVuaW9uIHsKCQl1bnNpZ25lZCB4OwoJCXN0cnVjdCB7CgkJCXVuc2lnbmVkIGE6MTsKCQkJdW5zaWduZWQgYjoxOwoJCQl1bnNpZ25lZCBjOjE7CgkJCXVuc2lnbmVkIGQ6MTsKCQl9OwoJfSB1OwoJdW5pb24gewoJCXVuc2lnbmVkIHh4OwoJCXN0cnVjdCB7CgkJCXVuc2lnbmVkIGFhOjE7CgkJCXVuc2lnbmVkIGJiOjE7CgkJCXVuc2lnbmVkIGNjOjE7CgkJCXVuc2lnbmVkIGRkOjE7CgkJfTsKCX0gdXU7Cgl1bnNpZ25lZCBGTEFHOwoKCXUuYSA9IHUuYiA9IHUuYyA9IHUuZCA9IDA7Cgl1dS5hYSA9IHV1LmJiID0gdXUuY2MgPSB1dS5kZCA9IDA7CgoJRkxBRyA9IH51LnggJiB1dS54eDsKCXByaW50ZigiJSN4XG4iLCBGTEFHKTsKCgl1dS5kZCA9IDE7CglGTEFHID0gfnUueCAmIHV1Lnh4OwoJcHJpbnRmKCIlI3hcbiIsIEZMQUcpOwoKCXJldHVybiAwOwp9Cg==