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

Ex Input:
//???? 
int divide(int n,int i);   //????   n???????i????????? 
int main()
{
    int n=0;  //????? 
    int t=0;  //???? 
    int sum;  //??????? 
    cin>>t;  
    for(int i=0;i<t;i++)
    {
        sum=0;
        cin>>n;
        for(int j=2;j<=n/2;j++)   //???????????1*n??? 
        {
            sum=sum+divide(n,j);
        }
        cout<<sum+1<<endl;
    }
    return 0;
}
int divide(int n,int i)   //???????????????1??? 
{
    int num=0;
    if(n%i==0)
    {
        if(n==i)      //?????????????????1 
        {
            return 1;
        }
        for(int j=2;j<=i;j++)
        {
             num=num+divide(n/i,j);   //?? 
        }
           return num;
    }
        
    else
    {
        return 0;
    }               
}

Ex Output:
3


Ex Input:

int all=1;   //?????????????????????1
void divd(int,int);   //??????????????????????????????

int main()
{
	int n,num;
	cin>>n;
	while(n--)
	{
		cin>>num;
		divd(2,num);   //????2???????
		cout<<all<<endl;
		all=1;
	}
	return 0;
}

void divd(int fac,int num)
{
	int i;
	for(i=fac;i*i<=num;i++)   //???????????????????????????
		if(num%i==0)  //?????????
		{
			fac=i;  //??
			all++;   //????
			divd(fac,num/fac);   //??????????
		}
}

Ex Output:
1


Ex Input:
int sum=0;//???????????
void fact(int a,int i)//?????;??????????a?????i?????
{
    if(a==1) sum++;//???????N=1????????N????????1
    while(i<=a)//????i???N
    {
        if(a%i==0) fact(a/i,i);//??N??i?????????????N/i??
        i++;//??N???i???i?1
    }
}
int main()//???
{
    int n;//?????????
    cin>>n;//??????
    while(n--)//??
    {
        int a;//??????????
        cin>>a;//????
        int i=2;//???????2?
		int result=1;//????????a??????
        while(i<=a/2)//??i???a???
        {
            if(a%i==0)//??i?a???
            {
                sum=0;//sum??
                fact(a/i,i);//????????/i
                result+=sum;//????????i????
            }
            i++;//i?1
        }
        cout<<result<<endl;//??????
    }
    return 0;
}


Ex Output:

0