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

//???2010?12?1?

//???1000010586_???

//???????

int m , num;
int make( int a );
int pan( int a );
int main()
{
int n , a , i;
cin >> n;
for( i = 1 ; i <= n ; i++ )
{
cin >> a;
num = 0;
m = a;
cout << make( a ) << endl;
}
return 0;
}
int pan( int a )
{
int n = 0 , i;
for ( i = 1 ; i <= sqrt( a ) ; i ++ )
{
if ( a % i == 0 )
n++;
}
if ( n == 1 )
return 0;
else
return 1;
}
int make( int a )
{
int i , j , ans;
ans = sqrt( a );
if ( pan( a ) == 0 )
{
num++;
return num;
}
else
{
num++;
for ( i = m / a ; i <= ans ; i++ )
{
if ( i == 1 ) continue;
if ( a % i == 0 )
{
m = a;
num = make( a / i );
}
}
if ( i == ans + 1 )
return num;
}
return num;
}

3

/*************************************************************************************************************
* @file .cpp
* @author ????
* @date
* @description
* ????
*/

int i;
int fenjie( int x, int t)
{
int j;
if(x == 1 || x == 2)
return 1;
int s = 1;
for (j = t; j <= sqrt(x); j++)
{
if (x % j == 0)
s += fenjie((x / j), j);
}
return s;
}

int main()
{
int n, a[100],x,t;
cin >> n;
for (i = 0; i < n; i++)
{
cin >> x;
a[i] = fenjie(x,2);
}
for(i = 0; i < n; i++)
cout << a[i] << endl;
return 0;
}
3

int n,m;
int sum(int x,int y)
{
int c,i;
if(x>sqrt(y))
c=0;
else
{
if(y%x==0)
{
for(i=x,c=1;i<=(y/2)+1;i++)
{
if((y/x)%i==0)
c=c+sum(i,(y/x));
}
}
else
c=0;
}
return(c);
}
main()
{
int i,k,j;
scanf("%d",&n);
for(j=1;j<=n;j++)
{
k=0;
scanf("%d",&m);
for(i=2;i<=(m/2)+1;i++)
k=k+sum(i,m);
printf("%d
",k+1);
}
}
3