I am getting run time error can you please correct my code

#include
#include
#include
using namespace std;
void generate_subsequence(char* in, char* out,int i,int j) {
if(in[i]=’\0’)
{
out[j]=’\0’;
cout<<out;
return;
}
out[j]=in[i];
generate_subsequence(in,out,i,j+1);
generate_subsequence(in,out,i+1,j);
}
int main() {
char input[10];
int b,d;
cin>>input;
b=strlen(input);
d=pow(2,b);
char output[10];
generate_subsequence(input,output,0,0);
cout<<d<<endl;
}

Check now =>

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.