Linkedlist intersection


getting compile time error.Is this because of error in prewitten code or mine.