#include <iostream>
struct B
{
int x = 0;
B() = default;
B(int num) : x{num} {}
};
struct D : B
{
using B::B;
};
int main()
{
D a;
D b(34); //error is coz of this line
std::cout << a.x << std::endl;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKc3RydWN0IEIKewoJaW50IHggPSAwOwoJQigpID0gZGVmYXVsdDsKCUIoaW50IG51bSkgOiB4e251bX0ge30KfTsKCnN0cnVjdCBEIDogQgp7Cgl1c2luZyBCOjpCOwp9OwoKaW50IG1haW4oKQp7CglEIGE7CglEIGIoMzQpOyAgICAgICAgICAgICAgLy9lcnJvciBpcyBjb3ogb2YgdGhpcyBsaW5lCglzdGQ6OmNvdXQgPDwgYS54IDw8IHN0ZDo6ZW5kbDsKfQ==