You are viewing a single comment's thread. Return to all comments →
using namespace std;
int main() { int n; int q; cin>>n; cin>>q; vector > vec; for(int i{0};i v; cin>>a; for(int j{0};j>b; v.push_back(b); } vec.push_back(v); } for(int k{0};k>c; cin>>d; vector temp=vec[c]; int h=temp[d]; cout<
} return 0;
}
Seems like cookies are disabled on this browser, please enable them to open this website
Variable Sized Arrays
You are viewing a single comment's thread. Return to all comments →
include
include
include
include
include
using namespace std;
int main() { int n; int q; cin>>n; cin>>q; vector > vec; for(int i{0};i v; cin>>a; for(int j{0};j>b; v.push_back(b); } vec.push_back(v); } for(int k{0};k>c; cin>>d; vector temp=vec[c]; int h=temp[d]; cout<
}