hey this was the code i wrote when contest was on, 2day i saw the tutorial can’t figure out where my algo gets different… getting WA here please help

```
#include<iostream>
#include<math.h>
using namespace std;
main(){
int T;
scanf("%d",&T);
while (T--){
int N;
scanf("%d",&N);
int matrix[N+1][N+1];
for (int j=0; j<=N; j++){
matrix[0][j]=-1000000;
matrix[j][0]=-1100000;
}
for (int i=1; i<=N; i++){
for (int j=1; j<=N; j++){
scanf("%d",&matrix[i][j]);
if (i>1 || j>1) matrix[i][j]=matrix[i][j] + max(matrix[i-1][j], matrix[i][j-1]);
}
}
float x= matrix[N][N]/float(2*N - 3);
cout.precision(6);
if (x>=0) cout<<fixed<<x<<endl;
else cout<<"Bad Judges\n";
}
}
```