#include <iostream>
#include <vector>
#include <string>

int main(){
    // declare a vector of string
    std::vector<std::string> animalsList;

    // Input 5 animal names and push them to the vector.
    std::cout << "Enter name of 5 animals of your choice. e.g., cat, dog, etc..  "<< std::endl;
    for (int i = 0; i < 5; i++){
        std::cout << ">> ";
        std::string animalName; // string to store an animal name.
        std::getline(std::cin, animalName); // Input an animal name.
        animalsList.push_back(animalName); // push the animal name to the vector
    }
    
    // output all the animal names.
    std::cout << std::endl;
    for (int i = 0; i < animalsList.size(); i++) // here animalsList.size() will be 5
    {
        std::cout << i + 1 << ": " << animalsList[i] << std::endl;
    }
    return 0;
}