It is illegal, the constructor of vector
taken a single number will call the default constructor of elements to value initialze its elements, but the class of the elements NoDefault
does not have a default constructor, thus the code will not compile.