instruction:
This task is to find the number of 'For' loops present in the given cpp program.
question:
int times=1;
int used[1000]={0};
void fuck(int n)
{

int i=0;
for (i=2;i<=sqrt(n);i++)
{
if (used[i]==0&&n%i==0)
{
int j=0;
for (j=0;j<=i-1;j++)
used[j]=1;
times++;
fuck(n/i);
for (j=0;j<=i-1;j++)
used[j]=0;
}
}
}
int main()
{
int n=0;
int num=0;
cin>>n;
int i=0;
for (i=0;i<n;i++)
{
cin>>num;
fuck(num);
cout<<times<<endl;
times=1;
int k=0;
for (k=0;k<=999;k++)
used[k]=0;
}
return 0;
}
answer:
5

question:

int f(int a,int min)//???a???????min?????????
{
int i;
if(a < min)//??????
{
return 0;
}
int result = 1;
for(int i = min;i<a;i++)//??????
{
if(a % i == 0)
{
result += f(a/i,i);
}
}
return result;
}
int main()
{
int n,a;//????
cin>>n;
while(cin>>a)//????
{
cout<<f(a,2)<<endl;//????
}
return 0;
}

answer:
1

question:
/*
* 35_1.cpp
*????????????
* Created on: 2010-12-3
* Author: 1000012877
*/
int n,sum;//?????n??????????sum????????
int fenjie(int min,int max)//??????????????????????????min???max?????
{ int i;//????????????????
for (i=min;i<=sqrt(max);i++){//i ?????????????
if (max%i==0&&i<=max/i){
sum++;//?????????i??????1
fenjie(i,max/i);}//???????????max??????????
if(i>max/i) break;}
return sum;
}
int main() {
int i,k;
cin>>k;//k?????????
for (i=0;i<k;i++) {
cin>>n;
sum=1;//??????????1
sum=fenjie(2,n);//?????????
cout<<sum<<endl; }
return 0; }

answer:
2