2 test cases failing

#include
using namespace std;

bool ispalindrome(char s[])
{
if(strlen(s)==0)
return true;
int i=0,j=strlen(s)-1;
bool flag=0;
while(i<j)
{
if(s[i++]!=s[j–])
flag=0;
}
flag=1;
return flag;
}
int main() {
char s[1000];
cin>>s;
cout<<ispalindrome(s);
}

never mind, realized a char array was needed and a function had to be implemented. thanks

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.

slightly off topic, is there a way I can change my username here?

@yaheyafarooqui_8319591c036ff6e9
https://account.codingblocks.com/users/me/edit try this

that doesnt let me change username for some reason

then you may mail and ask to coding blocks team for that or someone from team CB