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

Example Input: int f(int a,int min)
{
	if(a<min)
	{
		return 0;
	}
	int k=1,i;
	for(i=min;i<a;i++)
	{
		if(a%i==0)
		{
			k=k+f(a/i,i);
		}
	}
	return(k);
}

int main()
{
	int f(int a,int min);
	int j,n;
	int a[100],b[100];
	scanf("%d",&n);
	for(j=0;j<n;j++)
		scanf("%d",&a[j]);
	for(j=0;j<n;j++)
	{
		b[j]=f(a[j],2);
		printf("%d\n",b[j]);
	}
	return 0;
}
Example Output: 3

Example Input: int num(int a,int b,int c)//??????????
{
	int sum=0,j;//sum????
	if(a>c)return 0;//???????????????0
	if(b==1)return 1;//????????????????
	for(j=a;j<=c;j++)//?????????????
		if(c%j==0)sum=sum+num(j,b-1,c/j);
	return sum;
}
int main()
{
	int k,n,m,e=0,i;//e??????
	cin>>n;
	while(e<n)
	{
		cin>>m;
		k=0;//k??m????????????????
		int f=m;
		for(i=2;i<=f;i++)
			if(f%i==0)
			{
				k++;
				f=f/i;
				i=1;
			}
		cout<<num(1,k,m)<<endl;//????????
		e++;
	}
	return 0;
}

Example Output: 2

Example Input: /*
 * ????1118-4.cpp
 * ?????
 * ????: 2011-11-29
 * ??????????a?????????????????a = a1 * a2 * a3 * ... * an???1 < a1 <= a2 <= a3 <= ... <= an?????????????
 */
int divide(int n,int a)//n?????????a????????????????????
{
	int s=0,i;
	if(n==1) return 1;//n?1???
	for(i=a;i>1;i--)
		if(n%i==0)
			s+=divide(n/i,i);//???????
	return s;//??0??????????0??????????
}
int main()
{
	int n,k;
	cin>>k;//??????
	while(k>0)//???????
	{
		cin>>n;//????????
		cout<<divide(n,n)<<endl;//??????
		k--;//?????????
	}
	return 0;//????
}

Example Output:
1