第32002题 单选题
以下C++代码运行后的输出结果是?
#include <iostream>
#include <vector>
using namespace std;
int main() {
    vector<vector<int>> v(3, vector<int>(2, 1));
    v[1].push_back(3);
    v[2][0] = 5;
    cout << v[1][2] + v[2][1] << endl;
    return 0;
}
A

4

B

8

C

3

D

6

程序运行统计
暂无判题统计
提交0次 正确率0.00%
答案解析