#include <vector>
struct NoDefault
{
NoDefault(float f);
};
int main()
{
std::vector<NoDefault> arr(5);
return 0;
}
I2luY2x1ZGUgPHZlY3Rvcj4KCnN0cnVjdCBOb0RlZmF1bHQKewogIE5vRGVmYXVsdChmbG9hdCBmKTsKfTsKICAgIAppbnQgbWFpbigpCnsKICAgIHN0ZDo6dmVjdG9yPE5vRGVmYXVsdD4gYXJyKDUpOwogICAgcmV0dXJuIDA7Cn0=
prog.cpp: In constructor 'std::vector<_Tp, _Alloc>::vector(std::vector::size_type, const value_type&, const allocator_type&) [with _Tp = NoDefault, _Alloc = std::allocator<NoDefault>, std::vector::size_type = unsigned int, value_type = NoDefault, allocator_type = std::allocator<NoDefault>]':
prog.cpp:10:33: error: no matching function for call to 'NoDefault::NoDefault()'
prog.cpp:5:3: note: candidates are: NoDefault::NoDefault(float)
prog.cpp:4:1: note: NoDefault::NoDefault(const NoDefault&)