Plz suggest what is wrong in my program…It is giving wrong answer
my code is ARUNIMA SINGH [4371248]
#include<stdio.h>
#include<stdlib.h>
long long max(long long a,long long b)
{
if(a>=b)
return a;
else
return b;
}
void main()
{
int t;
scanf("%d",&t);
while(t–)
{
int n;
long long a[105][105],i,j,avg=0;
float k;
scanf("%d",&n);
for(i=0;i<=n;i++)
a[i][0]=0;
for(i=0;i<=n;i++)
a[0][i]=0;
for(i=1;i<=n;i++)
for(j=1;j<=n;j++)
scanf("%lld",&a[i][j]);
for(i=1;i<=n;i++)
for(j=1;j<=n;j++)
a[i][j]=max(a[i-1][j]+a[i][j],a[i][j-1]+a[i][j]);
if(a[n][n]<0)
printf(“Bad Judges\n”);
else
{
k=a[n][n]/(2*n-3);
printf("%f\n",k);
}
}
exit(0);
}