My code is perfect and follows all the rules of paper message coding, but still code chef says it's wrong. Can any one help plz?

#include
#include<string.h>
using namespace std;
int i,j,c,h[10],a[30],l,p,u;
char pad[20][20];
class str
{
public:
char ch[20];

void getstr()
{
	cin>>ch;
}
void seq(int s)
{
	for(int i=0;i<s;i++)
	{
		cin>>a[i];
	}
}

};
int main()
{

str obj[20],obj1;
int n=0;




cin>>n;

for(i=0;i<n;i++)
{
	obj[i].getstr();
}


for(i=0;i<10;i++)
{
	cin>>h[i];
	for(j=0;j<h[i];j++)
	{
		cin>>pad[i][j];
	}
}


cin>>l;

obj1.seq(l);

int ct=0;
	for(i=0;i<n;i++)
	{
		int m=strlen(obj[i].ch),cnt=0;
		for(j=0;j<l;j++)
		{            
			cnt=0;
			for(p=j,u=0;p<=j+m && u<m;p++,u++)
			{


				for(int k=0;k<h[a[j]];k++)
				{
					if(obj[i].ch[u]==pad[a[p]][k])
					{
						cnt++;
						if(cnt==m)
						{
							ct++;
		
						}
					}

					
				}

			}
		}
	}
	if(ct==0)
		ct--;
	cout<<"\nCase 1:"<<ct<<endl;



return 0;

}

not found it covers mostly
trik kesehatan alami

not found it covers mostly
codechef trick

I did’nt got you sir.

SPAM ALERT

SPAM ALERT

can you give a link to the question?