struct Year
{
int* pattern;
};
int main()
{
Year leap = {
new int[12]{31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}
};
delete[] leap.pattern;
}
c3RydWN0IFllYXIKewogIGludCogcGF0dGVybjsKfTsKCmludCBtYWluKCkKewogICAgWWVhciBsZWFwID0gewogICAgICAgIG5ldyBpbnRbMTJdezMxLCAyOSwgMzEsIDMwLCAzMSwgMzAsIDMxLCAzMSwgMzAsIDMxLCAzMCwgMzF9CiAgICB9OwoKICAgIGRlbGV0ZVtdIGxlYXAucGF0dGVybjsKfQo=