whats wrong in my code
#include
using namespace std;
void class1(int n,string s,int &ans){
if(n==0){
ans++;
return;
}
if(n<0){
return;
}
class1(n-1,“a”+s,ans);
int x=s.length();
if(s[x-1]!='b'){
class1(n-1,"b"+s,ans);
}
}
int main() {
int t;
cin>>t;
while(t–){
int n;
cin>>n;
int cnt=0;
class1(n,"",cnt);
cout<<"#"<<n<<" : "<<cnt<<endl;
}
return 0;
}