This task is to find the number of 'For' loops present in the given cpp program.

[Q]: int f(int t,int k)
{
    int u=1,i;
    if(t>2)
    {
    for(i=k;i<=sqrt(t);i++)
    {
        if(t%i==0)
        {
            u += f(t/i,i);
        }
    }
    return u;
    }
    else if(t==2)
    return 1;
    else if(t==1)
    return 0;
}
main()
{
      int i,n,t;
      scanf("%d",&n);
      for(i=0;i<n;i++)
      {
          scanf("%d",&t);
          printf("%d\n",f(t,2));
      }
}

[A]: 2


[Q]: int sum=0; //??????sum????????
int yueshu[100]={0}; 
int s=0;

void number(int num,int s)
{
	int i;
	for(i=s;i>=0;i--)
	{
		if(num<yueshu[i])
			continue;
		if(num==yueshu[i])
			sum++;
		else if(num>yueshu[i]&&num%yueshu[i]==0)
			number(num/yueshu[i],i);
	}
}

int main()
{
	int n=0;
	cin>>n;
	int num=0;
	while(cin>>num)
	{
		int i=0,j=0;
		for(i=2;i<=num;i++)
			if(num%i==0)
			{
				yueshu[j]=i;
				j++;
			}
		s=j-1;
		number(num,s);
		cout<<sum<<endl;
		sum=0;
	}
	return 0;
}
[A]: 2


[Q]: 
int Factorization(int n,int k){	//????????
	int sum=0;	//??????sum??????????
	if (n<k){	//?????????k
		return 0;	//??0
	}
	if (n%k==0){	//????????k???
		if (n==k){	//?n?k???
			return 1;	//??1
		}
		else{
			sum=sum+Factorization(n,k+1)+Factorization(n/k,k);	//??????????
		}
	}
	else{
		sum=sum+Factorization(n,k+1);	//?????????k????????
	}
	return sum;	//??sum??
}

int main(){	
	int t,i,a;	//???????t???????i??????a???????
	cin>>t;	//????????
	for (i=1;i<=t;i++){	//?????????
		cin>>a;
		cout<<Factorization(a,2)<<endl;
	}
	return 0;
}

[A]:
1