记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:20:27: warning: passing argument 5 of 'step' from incompatible pointer type [-Wincompatible-pointer-types]
  printf("%c",step(p,q,m,n,a));
                           ^
/in/foo.c:3:5: note: expected 'int *' but argument is of type 'char (*)[100]'
 int step(int p, int q, int m, int n, int a[]);
     ^~~~
/in/foo.c: In function 'step':
/in/foo.c:30:19: error: subscripted value is neither array nor pointer nor vector
  if( q<m-1 && a[p][q+1]=='0' )
                   ^
/in/foo.c:35:21: error: subscripted value is neither array nor pointer nor vector
  if( p<n-1 && a[p+1][q]=='0' )
                     ^

信息

递交者
类型
递交
题目
6 营救公主
比赛
小兰赛 2018/12/2
语言
C
递交时间
2018-12-02 11:53:58
评测时间
2018-12-02 11:53:58
评测机
分数
0
总耗时
12ms
峰值内存
2.918 MiB