C++ struct constructor
will try to initialise the array by calling a default constructor for node. You could either provide a default constructor or, rather verbosely, initialise all 100 elements explicitly or, since you’re using C++, use std::vector instead, appending to it (using push_back) at runtime