TASK DEFINITION: This task is to find the number of 'For' loops present in the given cpp program.
PROBLEM: int tot;

void find(int m,int n)
{
    int i,j,k;
    if (m==1) tot=tot+1;
    else 
    {
        for (i=n;i<=m;i++)
        if(m%i==0)
           find (m/i,i);         
    }
}

int main()
{
    int i,j,k,m,n;
    cin >>n;
    for (i=1;i<=n;i++)
    {
        tot=0;
        cin >>m;
        find(m,2);
        cout <<tot<<endl;    
    }    
    cin >>n;
    return 0;
}


SOLUTION: 2

PROBLEM: int i=0;
int f(int n,int m)
{int k=0;
if(m==1)
i++;
else
{for(k=n;k<=m;k++)
   {if(m%k==0)
    {n=k;
     f(n,m/n);}}}
return(i);}
int main()
{
 int n,b,c;
 cin>>n;
 int a;
 for(b=0;b<n;b++)
   {cin>>a;
    c=f(2,a);
    cout<<c<<endl;
    i=0;}
 return 0;
}




SOLUTION: 2

PROBLEM: /*
 * 1000012739_34_1.cpp
 *
 *  Created on: 2010-12-3
 *      Author: ???
 *		Title: 1090 ????
 */



int cnt=0;		//????????

void slv(int nm,int pr)		//nm????????pr???????
{
	int i;
	if (nm>=pr)		//???????????
	{
		cnt++;		//??????
		if (pr==1)	//???????????2??
			pr++;
		for (i=pr;i<=nm;i++)	//??????
		{
			if (nm%i==0)		//??nm???
			{
				slv(nm/i,i);	//nm??i???
			}
		}
	}
}

int main()
{
	int n,i,num;
	cin>>n;		//??????
	for (i=1;i<=n;i++)
	{
		cnt=0;		//???????
		cin>>num;	//????
		slv(num,1);	//??cnt
		cout<<cnt<<endl;		//??cnt
	}
}

SOLUTION:
2