'error in string size while reading data from text file into linked list in cpp c++

this is my code for loading data from a text file into a linked list and then viewing it on the console screen.

node1* temp3 = head2;
cout << "Total records : " << a;
while (temp3->next != NULL)
{
    cout << "\nTime of meeting is : " << temp->time;
    cout << "\nName of person : " << temp->name;
    cout << "\nPlace for meeting : " << temp->place;
    cout << "\nDuration for meeting : " << temp->duration;
    cout << "\nAdditional information about meeting : " << temp->note;
    cout << "\n-------------------------------------------------\n\n";

picture of error

it shows the exception handling error in string size. any type of help would be appreciated.

c++


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source