int main(int argc, char** argv) { auto a = std::make_unique<A>(); B *b = new B(); int c = c * sum(1, 2); if (a->check1()) return 3; else if (a->check2()) return 4; return a->result(); }