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

/*
 *????HW7_10.cpp
 *??????1100019007?
 *???2012-11-14 
 *???1090 ???? 
 */ 
int factorize(int m,int k)
{
    int c=1;//a=a??? 
    if(m<4)return 1;//?m??4??1 
    for(int i=k;i<=sqrt(m);i++)if(!(m%i))c+=factorize(m/i,k>i?k:i);//????????????????an>an-1,???k???
    return c;//????? 
}
int main(int argc, char *argv[]){
    int n,m;
    cin>>n;
    while(n--){
        cin>>m;//????
        cout<<factorize(m,2)<<endl;//????
    }
    return 0;}

1

int f(int,int);      //????
int main( )      //?????
{      //?????
	int n,i,a[50];
	cin >>n;      //??????
	for(i=0;i<n;i++){
		cin >>a[i];      //????
		cout <<f(a[i],2) <<endl;      //????
	}
	return 0;      //???????????????????
}      //?????
      
int f(int n,int p)      //????????????=p?????

{
	int sum=0,m;
	for(m=p;m<=n;m++)
		if(n%m==0){
			if(m<n) sum=sum+f(n/m,m);      //n?????m?????=n/i?????=m?????
			if(m==n) sum=sum+1;      //n?????n?????=1
		}
		return sum;      
}

2

int f(int m,int l)
{
	int re=0,j;
	if(l==4)
      re=1;
	if(l>4)
	{
		for(j=m;j<=sqrt(l);j++)
		{
			if(l%j==0)
			{
				re=re+1+f(j,l/j);
			}
		}
	}
	return re;
}
int main()
{
	int n,i,a[100]={0};
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%d",&a[i]);
	}
	for(i=0;i<n;i++)
	{
		printf("%d\n",(f(2,a[i])+1));
	}

}




3

