You are viewing a single comment's thread. Return to all comments →
cin >> n >> q; int** arr = new int*[n]; for(unsigned int h = 0; h < n; ++h) { cin >> k; *(arr + h) = new int[k]; for(unsigned m = 0; m < k; ++m) {cin >> *(*(arr + h)+ m);} } for(unsigned int h = 0; h < q; h++){cin >>i >>j; cout << *(*(arr + i)+ j) << 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 →