#include <string>
#include <vector>
#include <iostream>
struct Students
{
std::string Name;
short testScore1, testScore2, testScore3;
};
int main()
{
short num;
std::cout << "Enter # of students: ";
std::cin >> num;
std::vector<Students> worms(num);
// ... rest of code
std::cout << "the are " << worms.size() << " students in the container\n";
}
I2luY2x1ZGUgPHN0cmluZz4KI2luY2x1ZGUgPHZlY3Rvcj4KI2luY2x1ZGUgPGlvc3RyZWFtPgpzdHJ1Y3QgU3R1ZGVudHMKewogICBzdGQ6OnN0cmluZyBOYW1lOwogICBzaG9ydCB0ZXN0U2NvcmUxLCB0ZXN0U2NvcmUyLCB0ZXN0U2NvcmUzOwp9OwoKaW50IG1haW4oKQp7CiAgIHNob3J0IG51bTsKCiAgIHN0ZDo6Y291dCA8PCAiRW50ZXIgIyBvZiBzdHVkZW50czogIjsKICAgc3RkOjpjaW4gID4+IG51bTsKCiAgIHN0ZDo6dmVjdG9yPFN0dWRlbnRzPiB3b3JtcyhudW0pOwoKICAgLy8gLi4uIHJlc3Qgb2YgY29kZQogICBzdGQ6OmNvdXQgPDwgInRoZSBhcmUgIiA8PCB3b3Jtcy5zaXplKCkgPDwgIiBzdHVkZW50cyBpbiB0aGUgY29udGFpbmVyXG4iOwp9