sncoup...check the solution??

#include<stdio.h>
#define P 100000
int main()
{
int t,h,v,n,i,j,s,k,f;
char c[2][P];
scanf("%d",&t);
while(t–)
{
h=0;
v=0;
scanf("%d",&n);
for(i=0;i<2;i++)
{
scanf("%s",&c[i]);
}
i=0;
for(j=0;j<n;j++)
{
if(c[i][j]==’’&&c[i+1][j]==’’)
{
h=1;
break;
}
}
i=0;

			for(j=0;j<(n-1);j++)
			{
				if((c[i][j]=='*'&&c[i][j+1]=='*')||(c[1][j]=='*'&&c[1][j+1]=='*'))
				v++;
			}
			i=0;
		for(j=0;j<n;j++)
		{
			for(k=(j+2);k<(n-1);k++)
			{
				if(c[i][j]=='*'&&c[i][k]=='*')
				{
					if((j+1)!=k)
					{
						v++;
						j=k-1;
						break;
					}
				}
			}
		}
		i=1;
		for(j=0;j<n;j++)
		{
			for(k=1;k<n;k++)
			{
				if(c[0][j]=='*'&&c[i][k]=='*')
				{
					if(j!=k)
					{
						h=1;
						f=7;
						break;
					}
				}
			}
			if(f==7)
			break;
		}
		s=v+h;
		printf("%d\n",s);
	}
	return 0;
}

please indent your code properly or share the submission link

Try this test case-

Input
1
5
*.*.*
.*.*.
Output
2
Expected Output
3

Alternating ‘*’ and ‘.’ is one of the corner cases here.

ok @hruday968

//