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

Ex Input:
/*
 * fenjieyinshi1.cpp
 *???????
 *  Created on: 2011-12-1
 *??:???
 */
int remember=0;//???????????0
int number(int const1,int a)//?????
{
	if(a==1)//??????1??????????????
	{
		remember++;//
		return 1;//??=1
	}
	else
	{
	for(int i=const1;i<=a;i++)//????1??????????
	{
		if(a%i==0)//??????????
		number(i,a/i);//?????????
	}
	}
}
int main()
{
	int n;
	cin>>n;//?????????
	int cases[n];//??????????
	for(int j=0;j<n;j++)
		cin>>cases[j];//???????
	for(int j=0;j<n;j++)
	{
		number(2,cases[j]);//????
		cout<<remember<<endl;//????
		remember=0;//?????????
	}
	return 0;
}

Ex Output:
3


Ex Input:
int main()
{
	int ys(int s,int p);
	int n,m,i,t;
	scanf("%d",&n);
    for(i=1;i<=n;i++)
	{
		scanf("%d",&m);
        t=ys(m,2);
		printf("%d\n",t);
	}
    return 0;
}
int ys(int s,int p)
{
	int j,a=1,b;
	for(j=p;j*j<=s;j++)
	{
        if(s%j==0)
		{
			b=s/j;
			a=a+ys(b,j);
		}
	}
	return(a);
}

Ex Output:
2


Ex Input:
int num=1;
int sushu(int n)
{
	int i,sum=0;
	for(i=1;i<=sqrt(n*1.0);i++)
		if(n%i==0)
			sum++;
	if(sum==1)
		return 1;
	else 
		return 0;
}
void fenjie(int i,int k)//i???????k??????????? i?sqrt?n???
{
	int mid,j;
	mid=sqrt(k*1.0);
	for(j=i;j<=mid;j++)
	{
		if(sushu(k))
			break;
		else
		{
			if(k%j==0)
			{
				num++;
				fenjie(j,k/j);
			}
		}
	}
}
int main()
{
	int n,i;
	int a[100];
	cin>>n;
	for(i=0;i<n;i++)
		cin>>a[i];
	for(i=0;i<n;i++)
	{
		fenjie(2,a[i]);
		cout<<num<<endl;
		num=1;
	}
	return 0;
}


Ex Output:

4