instruction:
This task is to find the number of 'For' loops present in the given cpp program.
question:
int yz[100],all=0;
int yinzi(int num,int amax)
{
	int i,j=0,geshu=0,key=num;
	if(num==1) return 1;
	else 
	{
		for (i=amax;i<all;i++) 
		{
			if(num%yz[i]==0)
			{
				num=num/yz[i];
				geshu=geshu+yinzi(num,i);
				num=key;
			}
		}
		return geshu;
	}
	return 0;
}
int main ()
{
	int num,n,i,c,j=0,k;
	cin>>n;
	for(k=0;k<n;k++) 
	{
		cin>>num;
		if(num==1) cout<<1<<endl;
		else
		{
			j=0;
			for (i=2;i<=num;i++)
			{
				if(num%i==0)
				{
					yz[j]=i;
					j++;
				}
			}
			all=j;
			cout<<yinzi(num,0)<<endl;
		}
	}
	return 0;
}

answer:
3


question:
int de(int s,int a){      //???????a???????s?????????
	int sum=0;           //?????????????
	if(a==1)return 1;    //a?????????????????
	else if(s>a)return 0;   //a?????????????????????
	for(int i=s;i<=a;i++)  //for????a??????????
		if(a%i==0)sum=sum+de(i,a/i);  //?????????????????????
	return sum;       //??????
 }
 int main(){      //???
     int n;                //??????n????????
     cin>>n;        //??n??
     while(n>0){      //while??????????
    	 int a;         //??????a
    	 cin>>a;              //??a??
    	 cout<<de(2,a)<<endl;   //???a???????2??????????
    	 n--;                //n???
     }
     return 0;     //?????????????????
}
answer:
1


question:
/**
 * author:liucheng
 * date:2010-10-23 13:04:16
 * file:factors.cpp
 */

int factor(int num,int minA1)
{
        int count=0;
        int sqrtNum;
        int i;

        if(num <= minA1)
                return 0;

        sqrtNum=(int)sqrt((double)num);
        for(i=minA1;i<=sqrtNum;i++)
                if(num % i == 0)
                {
                        count++;//num=i*(num/i)
                        count+=factor(num/i,i);//num=i*(factor(num/i))
                }

        return count;
}


int main()
{
        int n;
        int num;

        cin>>n;

        while(n -- )
        {
                cin>>num;
                cout<<factor(num,2)+1<<endl;
        }

        return 0;
}
answer:

1