I am struggling with this code. I know what I want to do, but I don't understand why I am getting an "instantiated from here" error. My code is supposed to be taking an input of a phrase including any spaces or punctuation and remove the spaces and punctuation to return whether or not the phrase is a palindrome.
bool isPhrasePalindrome (string phrase)
unsigned short k=0;
unsigned loop = 0;
for (loop =0; loop < (phrase.length()); loop++)
if (ispunct (phrase[loop]) || isspace (phrase[loop]))
for (k = 0; k < (phrase.length()/2); k++)
if (tolower(phrase[k]) != tolower(phrase[(phrase.length()-1-k]))