i am getting 0 percent result when i run the following code.

this is a very simple question but i the length of the code in increased because of the constraints given over there. Naive Chef

```
#include <iostream>
#include<iomanip>
using namespace std;
int main()
{
int cases,faces,num1,num2,num_count1,num_count2,i;
double prob;
cin>>cases;
if(cases<=70 && cases>=1)
{
for(int j=0;j<cases;j++)
{
cin>>faces>>num1>>num2;
int * num,flag=0;
num=new int[faces];
if(faces<=10000 && faces>=1 && num1>=1 && num1<=faces && num1>=1 && num1<=faces)
{
for(i=0;i<faces;i++)
{
cin>>num[i];
}
for(i=0;i<faces;i++)
{
if(!(num[i]<=faces && num[i]>=1))
{
flag=1;
break;
}
}
if(flag==0)
{
num_count1=num_count2=0;
for(i=0;i<faces;i++)
{
if(num1==num[i])
{
num_count1++;
}
else if(num2==num[i])
{
num_count2++;
}
}
prob=(double)num_count1/faces;
prob*=(double)num_count1/faces;
cout<<setprecision(7)<<prob<<endl;
}
}
delete []num;
}
}
}
```

i am running this in my compiler it is working fine. pl help. bear with me as i am completely new (started learning cpp a weak ago).