foo.c: In function 'main':
foo.c:5:11: error: expected ']' before ',' token
int a[500,500],i,j,t,m,n,max,min,count=0;
^
foo.c:6:17: error: 'm' undeclared (first use in this function)
scanf("%d %d",&m,&n);
^
foo.c:6:17: note: each undeclared identifier is reported only once for each function it appears in
foo.c:6:20: error: 'n' undeclared (first use in this function)
scanf("%d %d",&m,&n);
^
foo.c:7:6: error: 'j' undeclared (first use in this function)
for(j=0;j<m;j++)
^
foo.c:8:6: error: 'i' undeclared (first use in this function)
for(i=0;i<n;i++)
^
foo.c:9:15: error: 'a' undeclared (first use in this function)
scanf("%d ",&a[m,n]);
^
foo.c:9:18: warning: left-hand operand of comma expression has no effect [-Wunused-value]
scanf("%d ",&a[m,n]);
^
foo.c:12:11: error: 'max' undeclared (first use in this function); did you mean 'main'?
for(j=0,max=a[i,0];j<n;j++)
^~~
main
foo.c:12:18: warning: left-hand operand of comma expression has no effect [-Wunused-value]
for(j=0,max=a[i,0];j<n;j++)
^
foo.c:12:10: warning: left-hand operand of comma expression has no effect [-Wunused-value]
for(j=0,max=a[i,0];j<n;j++)
^
foo.c:13:10: warning: left-hand operand of comma expression has no effect [-Wunused-value]
if(a[i,j]>max)
^
foo.c:14:12: warning: left-hand operand of comma expression has no effect [-Wunused-value]
max=a[i,j]
^
foo.c:15:3: error: expected ';' before 'for'
for(j=0;j<n;j++)
^~~
foo.c:27:2: warning: implicit declaration of function 'printF'; did you mean 'printf'? [-Wimplicit-function-declaration]
printF("%d",count);
^~~~~~
printf
foo.c:27:14: error: 'count' undeclared (first use in this function)
printF("%d",count);
^~~~~
[Hydro](https://hydro.ac)提供评测服务