#include <iostream>
#include <memory>
class Widget {
public:
Widget(int, int) { }
};
int main() {
const std::size_t number_of_widgets = 2;
std::unique_ptr<Widget[]> widget(new Widget[number_of_widgets]{Widget(1, 2), Widget(3, 4)});
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8bWVtb3J5PgoKY2xhc3MgV2lkZ2V0IHsKcHVibGljOgoJV2lkZ2V0KGludCwgaW50KSB7IH0KfTsKCmludCBtYWluKCkgewoJY29uc3Qgc3RkOjpzaXplX3QgbnVtYmVyX29mX3dpZGdldHMgPSAyOwoJc3RkOjp1bmlxdWVfcHRyPFdpZGdldFtdPiB3aWRnZXQobmV3IFdpZGdldFtudW1iZXJfb2Zfd2lkZ2V0c117V2lkZ2V0KDEsIDIpLCBXaWRnZXQoMywgNCl9KTsKCQoJcmV0dXJuIDA7Cn0K