how to it match with the string i can’t get
#include<iostream>
#include<string>
using namespace std;
string searchIn [] = {
"prateek", "sneha", "deepak", "arnav", "shikha", "palak",
"utkarsh", "divyam", "vidhi", "sparsh", "akku"
};
void strkey(char *in, char *out, int i, int j){
if(!in[i]){
out[j]='\0';
for(int k=0;k<11;k++){
if(searchIn[k].find(out) != -1){
cout<<searchIn[k]<<endl;
// return;
}
}
return;
}
int digit = in[i]-'0';
for(int k=0;searchIn[digit][k];k++){
out[j] = searchIn[digit][k];
strkey(in,out,i+1,j+1);
}
}
int main() {
char in[13],out[13];
cin>>in;
strkey( in, out, 0, 0);
return 0;
}