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

Example Input:
int all=1; //?????????????????????1
void divd(int,int); //??????????????????????????????

int main()
{
int n,num;
cin>>n;
while(n--)
{
cin>>num;
divd(2,num); //????2???????
cout<<all<<endl;
all=1;
}
return 0;
}

void divd(int fac,int num)
{
int i;
for(i=fac;i*i<=num;i++) //???????????????????????????
if(num%i==0) //?????????
{
fac=i; //??
all++; //????
divd(fac,num/fac); //??????????
}
}
Example Output: 1

Example Input:
int count;

void fun(int i, int j)
{
int k;
for(k=i; k<=sqrt(j); k++) {
if(j%k == 0) {
count++;
fun(k,j/k);
}
}
}
int main()
{
int N,turn,c;
scanf("%d",&turn);
for(c=1;c<=turn;c++)
{
int n,i;
scanf("%d",&n);
for(i=2; i<=sqrt(n); i++) {
if(n%i == 0) {
count++;
fun(i,n/i);
}
}
printf("%d
",count+1);
count=0;
}

}

Example Output: 3

Example Input: int prime(int min,int num)
{
int i;
for(i=min;i<num;i++)
{
if(num%i==0)
return 0;
}
return 1;
}
int count(int min,int num)
{
int i=0,n=1;
if(prime(min,num))
return 1;
else
for(i=min;i<num;i++)
{
if(num%i==0&&i<=num/i)
{
n=n+count(i,num/i);
}
}
return n;
}
int main()
{
int num,n,i;
cin>>n;
for(i=0;i<n;i++)
{
cin>>num;
cout<<count(2,num)<<endl;
}
return 0;

}

Example Output:
3