Test case fail!

what’s the error ,its showing 1 test case failure??

#include
using namespace std;
char keypad[][100]={" “,”.+@$",“abc”,“def”,“ghi”,“jkl”,“mno”,“pqrs”,“tuv”,“wxyz”};
void smart(chara,charb,int i,int j){
if(a[i]==’\0’){
b[j]=’\0’;
cout<<b<<endl;
return;
}
int digit =a[i]-‘0’;
if(digit==0){
smart(a,b,i+1,j);
}
for(int k=0;keypad[digit][k]!=’\0’;k++){
b[j]=keypad[digit][k];
smart(a,b,i+1,j+1);
}
}
int main() {
char a[10];
cin>>a;
char b[100];
smart(a,b,0,0);
return 0;
}

hello @Ashu1318

remove this if statement. (actually they are considering space for digit 0)

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.