In some test case, no-output

in my code, I am getting no-output in two test case and the other two test cases are correc . all test cases take time 0 s.
if a given string is larger string in his permutation strings what i need to print in output??

You must be getting out of bound of array index.
You may share your code so that i can have a look.

Recursion-Dictionary Order(Larger)

#include<bits/stdc++.h>
using namespace std;

char b[100];
void dictionary(int *a,string s,int n,int ind)
{
if(ind>=n)
{
b[ind]=’\0’;
if(b<=s) return;
cout<<b<<endl;
return;
}
for(int i=0;i<26;i++)
{
if(a[i]!=0)
{
b[ind]=char(‘a’+i);
a[i]–;
dictionary(a,s,n,ind+1);
a[i]++;
}
}
}

int main() {
int a[26]={0};
string s;
cin>>s;
for(int i=0;i<s.length();i++)
a[s[i]-‘a’]++;

dictionary(a,s,s.length(),0);
return 0;

}

Please save your code in ide.codingblocks.com and share the id…

You have fixed the length of B to 100.
String can of greater length too. Try to fix that.

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.