如何将两个二维数组联系起来求出结果sum
#include<stdio.h>
#include<stdlib.h>
#include<time.h>
int main(void){
srand((unsigned)time(NULL));
int i,j,a[i][j],b;
for(b = 0; b < 25; ++b){
printf("%d ",10+rand()%91);
} for(i=0;i<5;i++)
for(j=0;j<5;j++)
a[i][j]=10+rand()%91;
int sum=a[0][0];
int row,col;
int arr[row][col];
arr[row][col]=a[i][j];
scanf("%d",arr[row][col]);
for(row=0;row<4;row++)
for(col=0;col<4;col++)
{
if(a[row+1][col]>a[row][col+1]){
sum+=a[row+1][col];
}else if(a[row][col+1]>a[row+1][col]){
sum+=a[row][col+1];
}
}printf("%d",sum);
}