You are viewing a single comment's thread. Return to all comments →
using namespace std;
int main() {
cin>>n>>q; vector<vector<int>>a(n); for(int i=0;i<n;i++){ cin>>k; a[i].resize(k); for(int j=0;j<k;j++){ cin>>a[i][j]; } } int row,col; while(q--){ cin>>row>>col; cout<<a[row][col]<<endl; }
}
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() {
}