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

int qipa(int p,int q) // ?p???????????q??????
{
int i,l,s=0;
if(p==1) return 1;
for(i=p;i>1;i--)
if(p%i==0 && i<=q)
s+=qipa(p/i,i);
return s;
}
int main()
{
int i,j,n,m,t;
scanf("%d",&n);
for(i=1;i<=n;i++)
{
scanf("%d",&m);
t=qipa(m,m);
printf("%d
",t);
}
return 0;
}
2

int main()
{
int i,n;
int fun(int n,int begin);
scanf("%d",&i);
while (i-->0)
{
scanf("%d",&n);
printf("%d
",fun(n,2));
}
return 0;
}
int fun(int n,int begin)
{
int i,result=1;
for (i=begin;i<=sqrt(n);i++)
if (n%i==0)
result+=fun(n/i,i);
return result;
}
1

int ans = 0;
int work(int p,int k)
{ if (p==1) {ans++; return (p*k,k);}
for(int i =k;i <= p;i ++){
if(p % i == 0){
work(p / i,i);

}
}
}
int main()
{
int n;
scanf("%d",&n);
while(n--){
ans = 0;
int t;
scanf("%d",&t);
work(t,2);
//ans = work(t);
printf("%d
",ans);
}

return 0;
}
1