This is for a project I am doing for my college class and I could not find an answer for this that worked for me anywhere. Its very likely I did not understand the answers thou
You're trying to pass parameters to a constructor of a non-static class member as part of the declaration, which is wrong.
Basically, you'll have to declare the data member in the declaration like this:
std::vector
and as part of the constructor, call the appropriate resize, if that is even necessary.
Unless you know you need a minimum vector size of 20, I would forget about pre-sizing it and just let it grow as necessary.