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

Ex Input:
int sum=0;
int main()
{
	void yinshu(int,int);//????????????????????????
	int i,n,a;
	cin>>n;
	for(i=1;i<=n;i++)
	{
		sum=0;
		cin>>a;
		yinshu(a,2);
		cout<<sum<<endl;
	}
	return 0;
}

void yinshu(int a,int x)
{
	if(a!=1)
	{
	for(int i=x;i<=a;i++)//?x?????
		if(a%i==0)//????
			yinshu(a/i,i);//?a/i??????????????i???
	}
	if(a==1)//????????????
		sum++;
}

Ex Output:
2


Ex Input:
int minf(int p,int min);
int main(){
	int n,i,k,p,zs[20000]={0};
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%d",&p);
		//for(min=2;min<=(int)sqrt(p);min++){
			//if(p%min==0){
				zs[i]=minf(p,2);
			    //printf("%d\n",minf(p,min));
		//	}			
		//}
		zs[i]++;
	} 
	for(i=0;i<n-1;i++){
		printf("%d\n",zs[i]);
	}
	printf("%d",zs[n-1]);
	//scanf("%d",&n);
    return 0; 
}
int minf(int p, int min){
	int x=0,i;
	i=min;
	for(i;i<=(int)sqrt(p);i++){
		if(p%i==0){
			x+=minf(p/i,i)+1;
		}
	}
	
	return x;
	}

Ex Output:
4


Ex Input:
int m=2;
int manners(int a){//????????????
	int count=1,t=0;
	t=sqrt((double) a);
	for(int i=m;i<=t;i++){//?????????
		if(a%i==0){
			m=i;//?????????????????????
			count=count+manners(a/i);//?????????????????
		}
	}
	return count;//?????
}
int main(){
	int n, b;
	int i=1;
	cin>>n;
	while(i<=n){
		cin>>b;
		cout<<manners(b)<<endl;
		m=2;//?????
		i++;
	}
   return 0;
}

Ex Output:

1