Whats wrong with the code,...help?...why this warning?


#1

int Solution::isPalindrome(string A) {
int flag=0;
int i,j;
int n=A.size();
if(n%2==0)
for(i=0,j=n-1;i<n/2,j>=n/2;i++,j–)
{if((A[i]<‘65’ || A[i]>‘90’) && (A[i]<‘97’|| A[i]>‘122’)) {i++;}
if((A[j]<‘65’ || A[j]>‘90’ && (A[j]<‘97’|| A[j]>‘122’)) j++;
if(A[i]==tolower(A[2])||A[i]==toupper(A[2])|| A[i]==A[j]) flag=1;
else {flag=0; break;}
}
if(flag==0) return 0;
else return 1;
}

WARNING::

warning: multi-character character constant [-Wmultichar]
11 | {if((A[i]<‘65’ || A[i]>‘90’) && (A[i]<‘97’|| A[i]>‘122’)) {i++;}


#2

you are suppose to write if((A[i]<‘a’ || A[i]>‘z’) && (A[i]<‘A’ || A[i]&&>‘Z’))
rather writing like “65”,“90” etc
I hope my idea would be helpfull to you