Recursive palindrome

I was trying to solve recursive palindrome but this program is throwing errors and it’s working fine on my ide but not on coding blocks.
#include<bits/stdc++.h>
using namespace std;
int ispalindrome(int *a,int lb, int ub)
{
if(a[lb]==a[ub])
{
if(lb>ub)
{
return 1;
}

	ispalindrome(a,lb+1,ub-1);
	
}
else
  {
	  return 0;
  }

}
int main() {
int n;
cin>>n;
int a[n];
for(int i=0;i<n;i++)
{
cin>>a[i];
}
int res= ispalindrome(a,0,n-1);
if(res==0)
{
cout<<“false”;
}
else
{
cout<<“true”;
}

return 0;

}

@div_yanshu07 share your code here using cb ide

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.