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

Ex Input:
/*
 * h35.cpp
 * function:????
 * Created on: 2012-11-30
 * Author: sear
 */
//m????n???????????n???n??m,????n,???n??1
int f(int m, int n) {			//m???,n????????
	int i, sum = 0;				//i?????,sum???????
	if (n == 1)
		return 1;				//???????1???1
	for (sum = 0, i = m; i <= n; i++)//?????????????????m???????m???
		if (n % i == 0)
			sum += f(i, n / i);//?n???????????n??i????
	return sum;					//??sum???????
}
int main() {
	int i, n, k;				//i?????,n????????,k?????????
	for (i = 0, cin >> n; i < n; i++) {
		cin >> k;				//???????
		cout << f(2, k) << endl;//???????
	}
	return 0;				//????
}


Ex Output:
2


Ex Input:
int varieties=0,p;
int dfs(int dep,int last,int k)    //???????????k????? ?? 
{
    if (k == 1)              //??k=1 
    {
        varieties++;            //???+1 
        return 0;
    }
    for (int i = last; i <= k; i++)      
    if (k % i == 0)                    //??k??i????????????k=1 
    {
        dfs(dep+1,i,k/i);
    }
}
int main()
{
    int i,n,t;
    cin>>n;            //?????? 
    int m[n];          //????n???????? 
    for(i=0;i<n;i++)
    {
        cin>>t;            
        dfs(0,2,t);
        m[i]=varieties;
        varieties=0;
    }
    for(i=0;i<n;i++)
    cout<<m[i]<<endl;      //??????????? 
    return 0;
}

Ex Output:
3


Ex Input:
int f(int,int);
int main()
{
	int n,i,a,b[100];
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%d",&a);
		b[i]=f(a,2);
	}
	for(i=0;i<n;i++)
	{
		printf("%d\n",b[i]);
	}
	return 0;
}
int f(int x,int y)
{
	int j,sum=1;
	if(x<y)
		sum=0;
	else
	{
		for(j=y;j<x;j++)
		{
			if(x%j==0)
				sum=sum+f(x/j,j);
		}
	}
	return sum;
}


Ex Output:

3