各位哥哥姐姐能不能帮我看看这两个错误是什么原因阿?????? 急用,在线等,谢谢了!!!!! #include<stdio.h> int zuidahe(int n,int a[][]) error C2087: '<Unknown>' : missing subscript { int c[10000],k,i,j,number=0;k=0;
if(n!=0){ for(i=0;i<n;i++) for(j=0;i<n;j++) { if(k==0) c[k++]=a[i][j]; else c[k++]=c[k-1]+a[i][j]; } for(i=0;i<n*n;i++) { if(number<c[i]) number=c[i]; } for(i=0;i<n-1;i++) for(j=0;j<n-1;j++) a[i][j]=a[i+1][j+1]; return (number>zuidahe(n-1,a))?number:zuidahe(n-1,a); }
else return 0;
}
void main(){ int a[100][100],n,i,j,m; for(i=0;i<n;i++) for(j=0;j<n;j++) scanf("%d",&a[i][j]);m=zuidahe(n,a); error C2664: 'zuidahe' : cannot convert parameter 2 from 'int [100][100]' to 'int [][1]' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast Error executing cl.exe.
printf("%d",m);
}