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

int num = 1, i, factor;

void f(int factor, int x)
{
	for (; factor * factor <= x; factor++)
	{
		if (x % factor == 0)
		{
			num++;
			f(factor, x / factor);
		}
	}
}

int main()
{
	int a, n;
	cin >> n;
	while(n--)
	{
		cin >> a;
		f(2, a);
		cout << num << endl;
		num = 1;
	}

	return 0;
}

answer:
1


question:
//*****************************************************
//*?????????.cpp                             *
//*??????                                       *
//*?????2010?12?8?                            *
//*????????????????                   *
//*****************************************************
int answer=0;//???????
int a=2;//???2????
void f(int,int);//?????
int main()//???
{
	int n=0;
	int i=0;
	int data[100]={0};
	cin>>n;//????
	for(i=0;i<n;i++)
	{
		cin>>data[i];
	}
	for(i=0;i<n;i++)
	{
		f(data[i],a);
		cout<<answer<<endl;
		answer=0;//??
	}
}
void f(int m,int n)//???
{
	int i=0;
	if(m==1)//??????1 ?????????
	{
		answer=answer+1;
	}
	for(i=n;i<=m;i++)//???2?????
	{
		if(m%i==0)
		{
			f(m/i,i);
		}
	}
}
answer:
3


question:

int ispr(int t) 
{
    int v=(int)sqrt(t*1.0)+1;
    for(int i=2; i<v; i++)
        if(t%i==0)
            return 0;
    return 1;
}


int sum;
void fun(int n,int i) 
{
    if(n==1)
        sum++;
    for (; i<=n; i++)
    {
        if(n%i==0)
            fun(n/i,i);
    }
    return ;
}


int main() {
    int n;
    scanf("%d",&n);
    for (int j=0; j<n; j++)
    {
        int a;
        scanf("%d",&a);
        if(ispr(a)==1) 
        {
            printf("1\n");
            continue;
        }
        
        int res=1;
        for (int i=2; i<=a/2; i++)
        {
            if(a%i==0)
            {
                sum=0;
                fun(a/i,i);
                res=res+sum;
            }
            
        }
        printf("%d\n",res);
    }
    
    return 0;
}

answer:

4


