Palindrome of a linked list

The code is shown wrong answers.
Can you check?

The link of the code :

if(palindrome(head)){
cout<<“true”;
}
else
cout<<“false”;

o/p formating was a problem