谁能告诉我为什么这个程序崩溃了?基本上我是在尝试创建一个数组向量?
#include <iostream>
#include <stdio.h>
#include <vector>
using namespace std;
int main() {
vector <int> arr[100];
arr[0][0] =5;
printf("%d",arr[0][0]);
return 0;
}
Run Code Online (Sandbox Code Playgroud)