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

Example Input: int fact(int n,int m);//????fact
int main()//?????
{
	int n,a[35000],i,b[35000];
	cin>>n;
	for(i=0;i<n;i++)cin>>a[i];//???????????
	for(i=0;i<n;i++)b[i]=fact(a[i],2);//?????????????????fact(a[i],2)
	for(i=0;i<n;i++)cout<<b[i]<<endl;//????????
	return 0;
}//?????
int fact(int n,int m)//fact??
{
	int sum=1,i,temp=0;
	if(n<m)return 0;//?n<m,?????0
	else if(n==2)return 1;//?n???2??????1
	else
	{
			for(i=m;i<n;i++)//??????m?n
	{if(n%i==0)sum=sum+fact(n/i,i);}//?n??i????sum??fact(n/i,i)??,????
	return sum;
	}
}//fact??
Example Output: 4

Example Input: int f(int x,int y)
{
	if(y==x)
		return 1; 
	if(y>x)
		return 0;
	if(x%y==0)
		return f(x,y+1)+f(x/y,y);
	else
		return f(x,y+1);
}
int main()
{
	int n,x;
	cin>>n;
	int z,i;
	i=n;
	while(i>0)
	{
		i=i-1;
		cin>>x;
		z=f(x,2);
		cout<<z<<endl;
	}
	return 0;
}


Example Output: 0

Example Input: int sum=0;
void divide(int n,int a)
{
	for(int i=a;i<=n;i++)
	{
		if((n%i==0))
		{
			if(n/i==1)
				sum++;
			else
				divide(n/i,i);
		}
	}
}
int main()
{
	int N=0,n=0,i=0;
	cin>>N;
	for(i=0;i<N;i++)
	{
		cin>>n;
		divide(n,2);
		cout<<sum<<endl;
		sum=0;
	}
	return 0;
}
Example Output:
2