#include <iostream>
#include <vector>
using namespace std;

int main()
{
    std::vector<int> v;

    for (int i = 0; i < 100; i++) {
        v.push_back(i);
    }

    for (auto &mem : v) {
        mem *= mem;
    }

    for (auto m : v) {
        std::cout << m << " ";
    }
    std::cout << std::endl;

    std::cout << "v[10] " << v[10] << std::endl;

    std::cout << "请读入字符串:" << std::endl;

    std::vector<string> s;
    string word;

    while (std::cin >> word) {
        s.push_back(word);
    }

    std::cout << s.size() << std::endl;

    return 0;
}
