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