Getting the wrong answer problem with my c++ code.Can anyone help please here is the code
<a class="attachment"
include
include
using namespace std;
int main ()
{
int t,i,n,j,x,y,mind=0,cas,dist;
scanf(" %d",&t);
for(i=0;i<t;i++)
{
scanf(" %d",&n);
for(j=0;j<n;j++)
{
scanf(" %d %d",&x,&y);
dist=sqrt((x*x)+(y*y));
if(dist>mind)
{
mind=dist;
cas=j+1;
}
}
printf("Case");
printf(" %d",i+1);
printf(": %d\n",cas);
}
return 0;
}