You haven't specified your errors, so we have to look for them. Not nice.
But
cin >> id << name;
makes no sense.
cin
can only be followed by
>>
. The
<<
is junk that will cause a compile error. That's not the only one of these. You also have a lot of
<< endl
after
cin
. Take them out.