Please teach me how to fix the errors and where should be modified. Thank you! "Program generated too much output. Output restricted to 50000 characters. Check program for any unterminated loops generating output." LinkedList.cpp LinkedList::LinkedList() { head = new Node; head->next = NULL; length = 0; } void LinkedList::insertNode(Sales dataIn) { /* Write your code here */ Node *newNode; Node *pCur; Node *pPre; newNode = new Node; newNode->data = dataIn; pPre = head; pCur = head->next; while (pCur != NULL && pCur->data.getName() < dataIn.getName()) { pPre = pCur; pCur = pCur->next; } pPre->next = newNode; newNode->next = pCur; length++; } bool LinkedList::deleteNode(string target){ Node *pCur; Node *pPre; bool deleted = false; pPre = head; pCur = head->next; while (pCur != NULL && pCur->data.getName() < target) { pPre = pCur; pCur = pCur->next; } if (pCur != NULL && pCur->data.getName() == target) { pPre->next = pCur->next; delete pCur; deleted = true; length--; } return deleted; } void LinkedList::displayList() const{ Node *pCur; pCur = head->next; while (pCur) { cout << pCur->data; pCur = pCur->next; } cout << endl; } void LinkedList::displayList(int year) const { Node *pCur; pCur = head->next; int cnt = 0; while (pCur) { if (pCur->data.getYear() == year){ cout << pCur->data; cnt++; } pCur = pCur->next; } if (cnt == 0){ cout << "N/A" << endl; } } double LinkedList::average() const { double total = 0.0; double average; Node *pCur; pCur = head; while (pCur != NULL) { total += pCur->data.getAmount(); pCur = pCur->next; } average = total / static_cast(length); return average; } bool LinkedList::searchList(string find, Sales &dataOut) const { bool found = false; Node *pCur; pCur = head->next; while (pCur != NULL && pCur->data.getName() < find) { pCur = pCur->next; } if (pCur != NULL && pCur->data.getName() == find) { dataOut = pCur->data; found = true; } return found; } LinkedList::~LinkedList() { Node *pCur; Node *pNext; pCur = head->next; while(pCur != NULL) { pNext = pCur->next; delete pCur; pCur = pNext; } delete head; } main.cpp void buildList(const string &filename, LinkedList &list); void deleteManager(LinkedList &list); void searchManager(const LinkedList &list); void displayManager(const LinkedList &list); int main() { string inputFileName; LinkedList list; cout << "Enter file name: "; getline(cin, inputFileName); buildList(inputFileName, list); displayManager(list); searchManager(list); deleteManager(list); displayManager(list); return 0; } void buildList(const string &filename, LinkedList &list) { ifstream inFile(filename); cout <<"Reading data from \"" << filename << "\"\n"; if(!inFile) { cout << "Error opening the input file: \""<< filename << "\"" << endl; exit(EXIT_FAILURE); } string id; int year; string name; int amount; string line; while (getline(inFile, line) ) { stringstream temp(line); temp >> id >> year; temp.ignore(); getline(temp, name, ';'); temp >> amount; // create a Sales object and initialize it with data from file.