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

Ex Input:
int f(int x,int y){//x??????y????????
	if((int)pow(x,0.5)<y)return 1;//??x^0.5???y??1
	int d=1;
	for(int i=y;i<=(int)pow(x,0.5);i++)//??i<=x^0.5,??????
		if((x%i)==0)
			d+=f(x/i,i);//??
	return d;
}
int main(){
    int n,m;
    cin>>n;//??
    for(int k=1;k<=n;k++){
    	cin>>m;
    	cout<<f(m,2)<<endl;//????
    }
	return 0;
}

Ex Output:
2


Ex Input:
int begin=2;
int main()
{
	int f(int);
	int n=0,x=0,i=0;
	cin>>n;
	for(i=0;i<n;i++)
	{
		cin>>x;
		cout<<f(x)+1<<endl;
	}
	return 0;
}
int f(int x)
{
	int i=0;
	int left=0;
	int num=0;
	for(i=begin;i<=sqrt(x);i++)
	{
		if(x%i==0)
		{
			num++;
			left=x/i;
			begin=i;
			num+=f(left);
		}
	}
	//if(num!=0)
	    begin=2;
	    return num;
	//else
		//return 0;
}


Ex Output:
2


Ex Input:

int count(int x,int y)//????????? 
{
    if(x<y) return 0;//???? 
    if(x>=y) 
    {
      int sum=0;
      for(int j=y;j<x;j++)
      {
        if(x%j==0)
        sum=sum+count(x/j,j);//??? 
      }
      return sum+1;
    }
} 
int main()
{
    int n;
    cin>>n;
    int a[n];
    for(int i=0;i<n;i++)
    cin>>a[i];
    for(int i=0;i<n;i++)
    cout<< count(a[i],2) <<endl; 
    return 0;
}


Ex Output:

3