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

Example Input: /*
* part.cpp
*
* Created on: 2012-11-25
* Author: Lsj
*/

int disintegerate(int a, int b)//?????a????
{
if (a == b || b == 1)//a b????b=1??????
return 1;
if (a > b)//a??b?b???1????0???0
return 0;
int ans = 0;//ans???
for (int i = a; i <= b; i++)//?a?b??
{
if (b % i == 0)//b??????
ans = ans + disintegerate(i, b / i);//??????
}
return ans;//??ans
}

int main()//main??
{
int Time;
cin >> Time;//????
while (Time > 0) {
int n;
cin >> n;//??n
cout << disintegerate(2, n) << endl;//????
Time--;//Time?1
}

return 0;
}//??

Example Output: 1

Example Input: int f(int x,int y)
{
int a,n=0;
for(a=y;a<=sqrt(x);a++)
{
if(x%a==0)
{
n++;
n+=f(x/a,a);
}
}
return n;
}
int main()
{
int m,i;
scanf("%d",&m);
int x[m],n[m];
for(i=0;i<m;i++)
{
scanf("%d",&x[i]);
n[i]=1+f(x[i],2);
}
for(i=0;i<m;i++)
{
printf("%d
",n[i]);
}
return 0;
}

Example Output: 3

Example Input: void fenjie(int, int, int);
int g_num, g_count;
int main()
{
int n, i;
cin >> n;
for(i = 1; i <= n; i++ )
{
g_count = 0;
cin >> g_num;
fenjie(2, g_num, 1);
cout << g_count << endl;
}
return 0;
}
void fenjie(int a, int num, int sum)
{
while( a <= g_num )
{
sum *= a;
if( sum == g_num )
g_count++;
if( sum < g_num )
fenjie(a, g_num, sum);
if( sum > g_num )
return;
sum /= a;
a++;
}
}
Example Output:
1