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

Example Input: //
// main.cpp
// 123
//
// Created by blues cookie on 12-11-12.
// Copyright (c) 2012? blues cookie. All rights reserved.
//

int calc(int a,int b)
{
if(a*a>b) return 1;
if(b%a==0) return (calc(a,b/a)+calc(a+1,b));
return calc(a+1,b);
}
int main(int argc, const char * argv[])
{
int n,a;
cin>>n;
for(int i=1;i<=n;i++)
{
cin>>a;
cout<<calc(2,a)<<endl;
}
return 0;
}
Example Output: 1

Example Input: void main()
{

int f(int ,int );
int n[100],sum,i,m;
scanf("%d",&m);
for(i=0;i<m;i++)
scanf("%d",&n[i]);
for(i=0;i<m;i++)
{
sum=f(1,n[i])+1;
printf("%d
",sum);
}

}

int f(int i,int n)
{
int j,k,sum=0;
for(j=i;j<(int)sqrt((double)n)+1;j++)
{

k=sum;
if(j==1)sum=0;
else
{
if(n%j==0&&n/j>=j)
{
sum=f(j,n/j)+1;
}
else sum=0;
}
sum=sum+k;

}
return(sum);
}

Example Output: 3

Example Input: /*????
* divide.cpp
*
* Created on: 2011-12-1
* Author: WJ
*/

int sum=1; //?????1?????
void f(int b,int a) //??????????????
{
for(int i=b;i<=a;i++){ //????????
if((a%i==0)&&(i<=a/i)){
sum=sum+1; //???1
f(i,a/i); //???????????
}
if(i>a/i) break;
}
}
int main()
{
int a,n;
cin>>n;
while(n>0){ //??????
cin>>a;
sum=1;
f(2,a); //????
cout<<sum<<endl; //????
n--;
}
return 0;
}

Example Output:
1