TASK DEFINITION: This task is to find the number of 'For' loops present in the given cpp program.
PROBLEM: int a[1000];
int l=0,x;
int fff(int w,int t,int x);
int main()
{
    int i,j,q,p,n,m,y;
    scanf("%d",&n);
    for(p=0;p<n;p++)
       {q=1;l=0;
        scanf("%d",&x);
        for(i=2;i<=x;i++)
           if(x%i==0)
             {a[q]=i;
             q++;
             }
        fff(q-1,1,x);
        printf("%d\n",l,x);
       }
}
int fff(int w,int t,int x)
{
    int i,j,y,n,m,p;
      for(i=t;i<=w;i++)
            {if(x%a[i]==0)
             {
             x=x/a[i]; 
             if(x==1){l++;}
             if(x>1)
                 fff(w,i,x);
             x=x*a[i];
             }
            }
}

            
 


SOLUTION: 3

PROBLEM: int fenj(int x, int y) {
  int a=(x==1),i;
  for (i=y;i<=x;i++)//???2?????????
	  if(x%i==0)a=a+fenj(x/i,i);//?????????
  return a;
}
int main(){
	int k;
	cin>>k;
	int a[k];
	for(int i=0;i<k;i++)cin>>a[i];
	for(int i=0;i<k;i++)cout<<fenj(a[i],2)<<endl;
	return 0;
}

SOLUTION: 3

PROBLEM: 

int f(int a,int min)
{ 
  if(a < min)
  { 
    return 0; 
  } 
  
  int r= 1; 
  for(int i = min;i<a;i++)
  { 
    if(a%i == 0)
    { 
         r+= f(a/i,i); 
    } 
  } 
  
    return r; 
} 

main()
{
      int n,a,i,j=0,k,m=0,r=0;
      scanf("%d",&n);
      
      for(k=0;k<n;k++)
      {
          scanf("%d",&a);
          
          if(k!=n-1)                                                               
           printf("%d\n",f(a,2));
           else
           printf("%d",f(a,2));                           
                                      
                     
                      
      }              
                     
                      
                      }

SOLUTION:
2

