• + 0 comments

    cpp

    One should take the input in this way

    int n; cin >> n; vector intVector(n); for (int i = 0; i < n; i++) { cin >> intVector[i]; }

    int s;
    cin >> s;
    vector<string> strVector(s);
    for (int i = 0; i < s; i++) {
        cin >> strVector[i];
    }