Number of Factors

I have submitted the code for " Number of Factors" and it showing Wrong Answer. But in which reason it displaying as wrong ? Please mention where is my fault. I checked it in Visual Studio but there its Okay.

#include<stdio.h>
int A[1000000];
int T=100;
int main(){
while (T–){
int Result=1;
int count=0;
int i,N;
scanf("%d",&N);
for (i=0;i<N;i++){
scanf("%d",&A[i]);
Result=Result*A[i];
}

for (i=1;i<=Result;i++){
	if (Result%i==0){
count++;
}
}

printf ("%d ",count);
printf("\n");
}

return 0;

}

please indent the code properly first and then submit your question

#include
using namespace std;
int main()
{
int i,n,c=0;
cout<<“enter n value:”;
cin>>n;
for(i=1;i<=n;i++)
{
if(n%i==0)
{
c++;
}
}
cout<<“number of factors is:”<<c<<endl;
getch();
}