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