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

/*************************************************************************************************************
* @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 f(int x,int y) //???????????????y?????????x????????
{
int i,sum = 0;
for(i = x; i <= sqrt(y); i++){
if(y % i == 0) sum += f(i,y / i) + 1;} //??????
return sum;
}

int main(){
int n,x,i,b[100];
cin>>n; //?????????
for(i=1;i<=n;i++){cin>>x;b[i]=x;}
for(i=1;i<=n;i++){cout<<f(2,b[i])+1<<endl;} //???????

return 0;

}
3

/*
*???: ????.cpp
*??????
*????: 2012-11-12
*??: ????????????
*/

int count(int num, int m)
//???????????????????a1????????????
{
if (num % m != 0) return 0;

if (num == m) return 1;
else {
int counter = 0;
for (int i = m; i <= num / m; i++){
counter += count(num / m, i);
}
return counter;
}
}

int main ()
{
int n,num;
cin >>n;
for (int i = 1; i <= n; i++){
int counter = 0;
cin >> num;
for (int i = 2; i <= num; i++)
counter += count(num,i);//a1???2???m???
cout << counter << endl;
}
return 0;
}
3