TASK DEFINITION: This task is to find the number of 'For' loops present in the given cpp program.
PROBLEM: int f(int n,int min){
int i,result=1;
if(n<min)return 0;
for(i=min;i<n;i++)
if(n%i==0)result+=f(n/i,i);
return result;
}
void main()
{
int cases,a;
scanf("%d",&cases);
while(cases--){
scanf("%d",&a);
printf("%d
",f(a,2));
}
}

SOLUTION: 1

PROBLEM: /*
* 009.cpp
*
* Created on: 2012-11-27
* Author: asus
*/
int varieties = 0;//??????

void divide(int forward, int number)//??divide??
{
int i;
if (number == 1)//????
{
varieties++;//??
}
for (i = forward; i <= number; i++)//forward???????,number?????,?forward?????
{
if (number % i == 0)//????
{
divide(i, number / i);
}}}

int main()//???
{
int n = 0, num = 0;
cin >> n;//????
for (int i = 1; i <= n; i ++)
{cin >> num;
divide(2, num);//??
cout << varieties << endl;
varieties = 0;
}
return 0;
}

SOLUTION: 2

PROBLEM: int w=1;
int f(int x)
{
int z=1,y,v=0;
for(y=w+1;y<=sqrt(x);y++)
{
if(x%y==0)
{

z=z+f(x/y);
v++;
w=y;
}
}
if(v==0)
z=1;
return z;
}
main()
{
int n,u=0,a;
scanf("%d",&n);
do
{
scanf("%d",&a);
printf("%d
",f(a));
u++;
w=1;
}
while(u!=n);
}

SOLUTION:
1