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

[EX Q]: //
//  main.c
//  ???? ? ??????????
//
//  Created by zhaoze on 13-11-5.
//  Copyright (c) 2013? zhaoze. All rights reserved.
//


void next(int c[],int x)
{
    int i,j;
    c[0]++;
    for (i=1; c[0]*c[1]*c[2]*c[3]*c[4]*c[5]*c[6]*c[7]*c[8]*c[9]*c[10]*c[11]*c[12]*c[13]*c[14]>x; i++)
    {
        c[i]++;
        for (j=0; j<i; c[j++]=c[i]);
        if (c[14]==2)  break;
    }
}


int reslove(int x)
{
    int c[15]={1,1,1,1,1,1,1,1,1,1,1,1,1,1,1};
    int p=0;
    while (c[0]*c[1]*c[2]*c[3]*c[4]*c[5]*c[6]*c[7]*c[8]*c[9]*c[10]*c[11]*c[12]*c[13]*c[14]<=x)
    {
        if (c[0]*c[1]*c[2]*c[3]*c[4]*c[5]*c[6]*c[7]*c[8]*c[9]*c[10]*c[11]*c[12]*c[13]*c[14]==x) p++;
        next(c, x);
    }
    return p;
}


void main()
{
    int i=0,n,a;
    scanf("%d",&n);
    while (i++<n)
    {
        scanf("%d",&a);
        printf("%d\n",reslove(a));
    }
    
    
    /*
    *int c[15]={2,2,2,2,1,1,1,1,1,1,1,1,1,1,1};
    *int x=20;
    *{next(c, x);
    *printf("%d %d %d %d %d %d %d %d %d %d %d %d %d %d %d \n",
    *      c[0],c[1],c[2],c[3],c[4],c[5],c[6],c[7],c[8],c[9],c[10],c[11],c[12],c[13],c[14]);}
    */
}
[EX A]: 2

[EX Q]: 
int count;

void f(int n, int min) {
int i;
if (n == min) { count++; return;}
if (n % min!=0) { return;}
for (i = min; i <= n; i++)
f(n/min, i);
}


int main() {
int N,i,num,j;
scanf("%d",&num);
for(j=1;j<=num;j++){
count = 0;
scanf("%d",&N);
for (i = 2; i <= N;i++)
f(N, i);
printf("%d\n",count);
}
return 0;
}

[EX A]: 3

[EX Q]: /*
 * 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 A]:
3

