indices is used to indirectly reference the elements of the other two arrays. IMO the best way to understand the concept is to write a small program and test it out. Sort the array then print out the values of the errors array.
// assume array has been sorted per my previous post
//
// now just simply display the values of the errors array
for(int i = 0; i < 16; i++)
cout << errors[ indices[i] ] << "\n";
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.