#include <iostream>
#pragma pack(push, 1)
struct A
{
int a;
char b;
};
#pragma pack(pop)
struct B : public A
{
int c;
};
int main()
{
std::cout << "Size of A: " << sizeof(A) << std::endl;
std::cout << "Size of B: " << sizeof(B) << std::endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKI3ByYWdtYSBwYWNrKHB1c2gsIDEpCnN0cnVjdCBBCnsKICAgIGludCBhOwogICAgY2hhciBiOwp9OwojcHJhZ21hIHBhY2socG9wKQoKc3RydWN0IEIgOiBwdWJsaWMgQQp7CiAgICBpbnQgYzsKfTsKCmludCBtYWluKCkKewogICAgc3RkOjpjb3V0IDw8ICJTaXplIG9mIEE6ICAiIDw8IHNpemVvZihBKSA8PCBzdGQ6OmVuZGw7CiAgICBzdGQ6OmNvdXQgPDwgIlNpemUgb2YgQjogICIgPDwgc2l6ZW9mKEIpIDw8IHN0ZDo6ZW5kbDsKICAgIHJldHVybiAwOwp9