123456789101112
...code for(;nline>0;nline--){ int * array = new int[n]; for(int j=0;j<n;j++) array[j] = 0; int * count = new int[(n+1)]; for(int j=0;j<n+1;j++) count[j] = 0; delete [] array; /*or delete array;*/ delete [] count; /*or delete count;*/ }