#include
#include<string.h>
using namespace std;
int d[20000];
char c[20000][5];
int main()
{
int t,n,j,k,count=1;
scanf("%d",&t);
for(int i=0;i<t;i++)
{
scanf("%d",&n);
scanf("%s %f",c[0],&d[0]);
for(j=1;j<n;j++)
{
scanf("%s %f",c[j],&d[j]);
for(k=j-1;k>=0;k--)
{
if((strcmp(c[j],c[k]))==0)
{
if(d[j]!=d[k])
{
// printf("c==c ");
break;
}
}
else
{
if(k>0)
{
// printf("workign continue");
continue;
}
else
{
// printf("WOrking");
count++;
}
}
}
}
printf("%d \n",count);
}
}
This is my program it is showing correct output but still online compiler is showing run time error.Please help me out