0
I need help fixmy linked list
I was implementing some changes into my linked list, and after adding them, i ran into an error, particularly in the destructor, when trying to free resources.# at line 45, an exception is thrown. the line is: temp = temp->next; on the solo-learn compiler, i just get a time limit exceeded error. am i getting these errors, possibly because i'm falling off the array when trying to de-allocate all of the previously allocated memory? my original code: https://code.sololearn.com/cMOemv3GkDBy
1 Réponse