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

int s=0,p;
int a[100];
void factor(int m,int n,int t){
	int i;
	for(i=2;i<=(int)sqrt(n);i++)
		if((n%i==0)&&(i>=m)){
			s++;
			factor(i,n/i,t+1);
		}
	return;
}
int main(){
	int i,j=0,k;
	scanf("%d",&j);
	for(k=0;k<j;k++)
		scanf("%d",&a[k]);
	for(k=0;k<j;k++){
		p=a[k]; s=0;
	for(i=2;i<=(int)sqrt(p);i++)
		if(p%i==0){
		s++;
		factor(i,p/i,2);
		}
		a[k]=s;
	}
	for(k=0;k<j;k++)
		printf("%d\n",a[k]+1);
	return 0;
}
5

/*
/???   10(1)
/??     ???
/??     2012?11?26?
/???   ????
*/
int main()
{
	int fenjie(int x, int y);
	int a, n, i;
	cin >> n;
	for(i = 1; i <= n; i++)
	{
		cin >> a;
cout << fenjie(a, 2) << endl;
	}
	return 0;
}
int fenjie(int x, int y)
{
	int b, i, count = 1; // ?????????
	if(x == 1)
		return 0;
	if(x == 2)
		return 1;
	b = sqrt((double) x);
	for(i = y; i <= b; i++)
	{
		if(x % i == 0)   // ?????????????????????count???
		{
			count += fenjie(x / i, i); // ????????????i??????????
		}
	}
	return count;
}
2

int t;
void tot(int,int);
int main()
{

	int n,a[100],i;
	cin>>n;
	for(i=1;i<=n;i++)
	cin>>a[i];
	for(i=1;i<=n;i++) {
		t = 0;
		tot(a[i],2);
		cout<<t<<endl;
	}
	return 0;
}

void tot(int x, int min)
{	int k;
	if(x==1) {
		++t;
		return;
	}
	for(k=min;k<=x;k++)
		if(x%k==0)
		{
			tot(x/k, k);
		}
}

3