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;
}