This task is to find the number of 'For' loops present in the given cpp program.
--------
Question: int sum=0; //??????sum????????
int yueshu[100]={0};
int s=0;

void number(int num,int s)
{
int i;
for(i=s;i>=0;i--)
{
if(num<yueshu[i])
continue;
if(num==yueshu[i])
sum++;
else if(num>yueshu[i]&&num%yueshu[i]==0)
number(num/yueshu[i],i);
}
}

int main()
{
int n=0;
cin>>n;
int num=0;
while(cin>>num)
{
int i=0,j=0;
for(i=2;i<=num;i++)
if(num%i==0)
{
yueshu[j]=i;
j++;
}
s=j-1;
number(num,s);
cout<<sum<<endl;
sum=0;
}
return 0;
}

Answer: 2

Question: void main()
{
int ways(int a, int min);
int n,b;
scanf("%d",&n);
while(n-->0)
{
scanf("%d",&b);
printf("%d
",ways(b,2));
}
}
int ways(int a, int min)
{
if(a<min) return 0;
int sum=0,i;
for(i=min;i<=sqrt(a*1.0);i++)
{
if(a%i == 0)
sum = sum + ways(a/i, i);
}
return sum+1;
}

Answer: 1

Question:
int fen(int x,int y);

int main(){
int n,i,m[500];
scanf("%d",&n);
for(i=0;i<n;i++)
{
scanf("%d",&m[i]);
printf("%d
",fen(m[i],2));
}
return 0;
}

int fen(int x,int y){
int j,k;
int result=1;
if(x<y)
return 0;
for(j=y;j<x;j++)
{
if(x%j==0)
result+=fen(x/j,j);
}
return result;
}

Answer:
2