I am working on an assignment for my c++ class and when I run my program and get to a certain point I get an error message that says R6010 - abort() has been called and I can't figure out why. The program reads in a number then allows the user to enter that many names. The names have no spaces. Then the program calls a function, in my case string namesSorted(string names[20][15], int numOfNames), to sort the names in alphabetical order. When it calls the function I get the error so there is probably something wrong with the sorting but I haven't been able to try and fix it because I don't know how to fix the error.