Is it a Cakewalk Problem please tell a question link:-https://www.codechef.com/problems/ISITCAKE

#include
using namespace std;

int main() {
int a,b[10][10],i,j,k;
int count=0;
cin>>a;
for(i=0;i<a;i++)
{
for(j=0;j<10;j++)
{ for(k=0;k<10;k++)
{ cin>>b[j][k];
if((b[j][k])<=30)
{count++;}

         }
        
       }
   if(count>=60)
   cout<<"yes";
   cout<<endl;
   else
   cout<<"no";
   cout<<endl;
}
return 0;

}

@arpit17_99 You forgot to update “count” variable for each test case.

#include <stdio.h>

int main() {
// your code goes here
int T,i,j,k,t[10][10],c=0,flag=0;
scanf("%d",&T);
if(T>=1&&T<=100)
{
for(i=0;i<T;i++)
{
for(j=0;j<10;j++)
{
for(k=0;k<10; )
{
scanf("%d",&t[j][k]);
if(t<1||t>60)
k++;
}
}
}
for(i=0;i<T;i++)
{
for(j=0;j<10;j++)
{
for(k=0;k<10;k++)
{

            if(t[j][k]<=30)
            {
                    c++;
            if(c>=60)
            {
             flag=1;
            }
            }
        if(t[j][k]>30&&c<60)
        flag=0;
        }
        }
        if(flag==1)
            printf("\nyes");
        else
            printf("\nno");
    }}

return 0;

}

What is wrong with this code
?