instruction:
This task is to find the number of 'For' loops present in the given cpp program.
question:
int t;
int main()
{int n,i,a[100];
void fenjie(int x,int y);
scanf("%d",&n);
for(i=0;i<n;i++)
scanf("%d",&a[i]);
for(i=0;i<n;i++)
{t=0;
fenjie(2,a[i]);
printf("%d
",t);
}
return 0;
}

void fenjie(int x,int y)
{int j;
if(y==1){
t++;
return;}
for(j=x;j<=y;j++)
{if(y%j==0)
fenjie(j,y/j);
}

}

answer:
3

question:

int countt;
void f(int p,int q)
{
for(int m=p;m<=sqrt(q);m++)
{
if(q%m==0)
{countt++;
f(m,q/m);}
}

}
int main()
{
int n,num,i;
cin>>n;
for(i=0;i<n;i++)
{
cin>>num;
countt=0;
for(int k=2;k<=sqrt(num);k++)
{
if(num%k==0)
{
countt++;
f(k,num/k);
}
}
cout<<countt+1<<endl;;
}
return 0;
}
answer:
3

question:
int s=0,z=2;//?????? z?? ???????
void number(int x,int y)
{ //????
int i;
if(x==1)
{
s=s+1;
}//????1? ???? s+1
for(i=y;i<=x;i++)
{
if(x%i==0)
{
number(x/i , i);
}//??????
}

}
int main()
{
int n,a,i;
cin>>n;
for(i=1;i<=n;i++)
{
cin>>a;
number(a,z);
cout<<s<<endl;//????
s=0;//S?0
}
}

answer:
2