my program does not compile..there are errors in line 102 and 110..

ptr->name=name;
ptr->company=company;

these are the code which i am having trouble..