I don’t quite understand the problem here. The codecademy platform compiles and executes the code by itself, so I wanted to check it out in the real terminal and stumbled across an error. The part of the code I have issues is: std::vector even = {2, 4, 6, 8, 10};
the terminal identifies this line as an error and says this:
non-aggregate type ‘std::vector’ cannot be initialized with an initializer list
std::vector even = {2, 4, 6, 8, 10};
Help, how can i solve this?