Variable Sized Arrays

  • + 0 comments

    int n,q; cin>>n>>q; vector> arr(n); for (int i=0;i>size; arr[i].resize(size); for (int j=0; j>arr[i][j]; } } while (q--) { int x,y; cin>>x>>y; cout<