sigtstp error

program stops after a while, without taking all the inputs.
anyone who knows how to correct it

#include

using namespace std;

int main()
{
int t;
cin>>t;
while(t–)
{
int l;
cin>>l;
char n[l];
for(int i=0;i<l;i++)
{
cin>>n[i];
}
int lf,c=1;
cin>>lf;
char f[lf];
for(int i=0;i<lf;i++)
{
cin>>f[lf];
}
int j=0;
for(int i=0;i<l;i++)
{

          if(n[i]==f[j])
          {

            j<lf;
            j++;
            c++;
          }
          else
            j=0;
            continue;
       }
       if(c==lf)
        cout<<"no";
        else
        cout<<"yes";






}

}