#include <iostream>
class Verbose {
public:
Verbose() { std::cout << "Verbose::Verbose()" << std::endl; }
Verbose( int ) { std::cout << "Verbose::Verbose(int)" << std::endl; }
Verbose &operator=( int ) { std::cout << "Verbose::operator=(int)" << std::endl; }
};
class A {
public:
A() : v( 0 ) {}
A(int) { v = 0; }
private:
Verbose v;
};
int main() {
std::cout << "case 1 --------------------" << std::endl;
A a1;
std::cout << "case 1 --------------------" << std::endl;
A a2( 0 );
// your code goes here
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKY2xhc3MgVmVyYm9zZSB7CnB1YmxpYzoKICAgIFZlcmJvc2UoKSB7IHN0ZDo6Y291dCA8PCAiVmVyYm9zZTo6VmVyYm9zZSgpIiA8PCBzdGQ6OmVuZGw7IH0KICAgIFZlcmJvc2UoIGludCApIHsgc3RkOjpjb3V0IDw8ICJWZXJib3NlOjpWZXJib3NlKGludCkiIDw8IHN0ZDo6ZW5kbDsgfQogICAgVmVyYm9zZSAmb3BlcmF0b3I9KCBpbnQgKSAgeyBzdGQ6OmNvdXQgPDwgIlZlcmJvc2U6Om9wZXJhdG9yPShpbnQpIiA8PCBzdGQ6OmVuZGw7IH0KfTsKCmNsYXNzIEEgewpwdWJsaWM6CiAgICBBKCkgOiB2KCAwICkge30KICAgIEEoaW50KSAgeyB2ID0gMDsgfQpwcml2YXRlOgogICAgVmVyYm9zZSB2OyAgICAKfTsKCgppbnQgbWFpbigpIHsKCXN0ZDo6Y291dCA8PCAiY2FzZSAxIC0tLS0tLS0tLS0tLS0tLS0tLS0tIiA8PCBzdGQ6OmVuZGw7CglBIGExOwoJc3RkOjpjb3V0IDw8ICJjYXNlIDEgLS0tLS0tLS0tLS0tLS0tLS0tLS0iIDw8IHN0ZDo6ZW5kbDsKCUEgYTIoIDAgKTsKCS8vIHlvdXIgY29kZSBnb2VzIGhlcmUKCXJldHVybiAwOwp9