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

Ex Input:
/*
 * hanshu_huisu_1.cpp
 * Name?????
 *  Created on: 2010-12-7
 *      Author: ??
 */

int n,c;
int solutionnumber(int n,int c){//n?????,c???
	if(n==c) return 1;//?n=c???????????????????????1
	if(n<c) return 0;//??n<c?????????0
	if(n%c==0) return solutionnumber(n/c,c)+solutionnumber(n,c+1);/*?n??c???????
	???c????????????n???c???????*/
	else return solutionnumber(n,c+1);
}
int main(){
	int N,a;
	cin>>N;//?????????
	while(N>0){
	cin>>a;//??????
	cout<<solutionnumber(a,2)<<endl;//?????????
	N--;
	}
return 0;
}


Ex Output:
0


Ex Input:
int min(int a,int b)
{
    if(a>=b)
    return b;
    else
    return a;
}

  
  int f(int a,int b)
{ 
    int count=0;
    int k[32768]={0};
    if(a==1)
    return 1;
    else
    {
    int i,j;
    for(i=min(a,b);i>=2;i--)
    {                     
        if(a%i==0)
        k[i]=i; 
    }
    for(j=0;j<32768;j++)
    {
         if(k[j]!=0)
         {
         count=count+f(a/k[j],j);
         k[j]=0;
         }
    }
    return count; 
    }
}
main()
{
      int n,i,a,number;
      scanf("%d",&n);
      for(i=0;i<n;i++)
      {
      scanf("%d",&a);
      number=f(a,a);
      printf("%d\n",number);
      }
}


Ex Output:
3


Ex Input:
/*
 * wanyi.cpp
 *
 *  Created on: 2012-11-20
 *      Author: 7
 */
int t=1;
void fen(int n,int i)
{
	for(i=i;i*i<=n;i++)
	{
		if(n%i==0)
		{
			fen(n/i,i);
			t++;
		}
	}
}
int main()
{
	int k;
	cin>>k;
	while(k--)
	{
		int n;
		cin>>n;
		t=1;
		fen(n,2);
		cout<<t<<endl;
	}
}


Ex Output:

1