#include <iostream>
using namespace std;
class TestClass
{
public:
TestClass();
~TestClass();
};
TestClass::TestClass()
{
cout<<"Created."<<endl;
}
TestClass::~TestClass()
{
cout<<"Destroyed"<<endl;
}
int main() {
for (int i = 0; i < 5; ++i)
{
TestClass c;
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKY2xhc3MgVGVzdENsYXNzCnsKcHVibGljOgoJVGVzdENsYXNzKCk7Cgl+VGVzdENsYXNzKCk7Cn07ClRlc3RDbGFzczo6VGVzdENsYXNzKCkKewoJY291dDw8IkNyZWF0ZWQuIjw8ZW5kbDsKfQoJClRlc3RDbGFzczo6flRlc3RDbGFzcygpCnsKCWNvdXQ8PCJEZXN0cm95ZWQiPDxlbmRsOwp9CgppbnQgbWFpbigpIHsKCWZvciAoaW50IGkgPSAwOyBpIDwgNTsgKytpKQoJewoJCVRlc3RDbGFzcyBjOwoJfQoJcmV0dXJuIDA7Cn0=