cin>>n>>m; vector<int>a(n),b(m); 或者: vector<int>a(n,0),b(m,0); 转载于:https://www.cnblogs.com/zwx7616/p/11188556.html