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

Ex Input:
int sum;
void zhongshu(int qian,int a);
int main()
{
    int n,i,j,a[100];
    cin>>n;
    for(i=0;i<n;i++)
    cin>>a[i];
    for(i=0;i<n;i++)
    {  sum=0;
       zhongshu(2,a[i]);
       cout<<sum<<endl;
       }
    return 0;
}
void zhongshu(int qian,int a)
{
   int i,j,c;
   if(a==1)
   {
   sum=sum+1;
   return;
  }
   for(i=qian;i<=a;i++)
   {
      if(a%i==0)
         zhongshu(i,a/i);
   }
}

Ex Output:
3


Ex 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;//????
}


Ex Output:
1


Ex Input:
int f(int n,int k){
   if(n<k)return 0;
   int i,s=1;
   for(i=k;i<n;i++){
     if(n%i==0)s+=f(n/i,i);
     }
   return s;
}
int main(){
    int m,n,i,ans,s;
    scanf("%d",&m);
    while(m--){
       scanf("%d",&n);
       printf("%d\n",f(n,2)); 
       }
    return 0;
}

Ex Output:

1