We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
int main() {
int n,q;
cin>>n>>q;
int a;
int i,j;
vectorarr[n];
int col=0;
for(int i=0;i>col;
for(int j=0;j>a;
arr[i].push_back(a);
}
}
for(int m=0;m>i>>j;
cout<
Cookie support is required to access HackerRank
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 →
//easy solution using array of vectors
include
include
include
include
include
using namespace std;
int main() {
int n,q; cin>>n>>q; int a; int i,j; vectorarr[n]; int col=0; for(int i=0;i>col; for(int j=0;j>a; arr[i].push_back(a); } } for(int m=0;m>i>>j; cout<