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

Q: 
int calc(int p,int t);

int main()
{
	int  m,n,ans;


	scanf("%d",&m);

	while (m--)
	{
		scanf("%d",&n);
		ans=calc(2,n);
		printf("%d\n",ans);   
	}


	return 0;

}

int calc(int p,int t)
{
	int i,a;
	
	a=1;
	for (i=p;i<=sqrt(t);i++)
		if (t%i==0) 
			a=a+calc(i,t/i);
	return a;
	
}

A: 1
****
Q: //1000012915???
int f(int a,int min);
int main()
{
	int n,i,a,A[100];        //????

	cin>>n;
	
	for(i = 0;i < n;i++)     //??
	{
		cin>>a;
		A[i]=f(a,2);         //?2?????
	};

	for(i = 0;i < n;i++)cout<<A[i]<<endl; //??
	return 0;
}


int f(int a,int min)
{ 
	int result = 1; 
	int i;

	if(a < min)                 //?min?a?????????a????????
	{ 
		return 0; 
	} 
	
	for(i = min;i<a;i++)        //???????????????n???
	{ 
		if(a % i == 0)
		{ 
			result += f(a/i,i); //????????????????????????x???
		} 
	} 
	return result; 
} 

A: 3
****
Q: int main()
{
	int f(int a,int b);
	int n,a;

	cin>>n;
	while(n>0)
	{
		cin>>a;
		cout<<f(a,2)<<endl;
	n--;
	}
return 0;
}

int f(int a,int b)
{
	int i;
	int s=1;

	if(a<b)
		return 0;
	for(i=b;i<a;i++)
	{
		if(a%i==0)
			s=s+f(a/i,i);
	}
		return s;
}

A:
1
****