记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:25:17: warning: comparison between pointer and integer
   for(int i=0; i<r; i++)
                 ^
/in/foo.c:26:11: error: subscripted value is neither array nor pointer nor vector
    if(c[0][i]!=0||c[C-1][i]!=0) break;
           ^
/in/foo.c:26:25: error: subscripted value is neither array nor pointer nor vector
    if(c[0][i]!=0||c[C-1][i]!=0) break;
                         ^
/in/foo.c:24:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  if(c[high]==C/2)
  ^~
/in/foo.c:27:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   if(r==i) min=r[high];
   ^~
/in/foo.c:27:9: error: 'i' undeclared (first use in this function)
   if(r==i) min=r[high];
         ^
/in/foo.c:27:9: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:14:6: warning: variable 'a' set but not used [-Wunused-but-set-variable]
  int a[100][100];
      ^

信息

递交者
类型
递交
题目
2-9 大卖场的货架
比赛
南师大2018年蓝桥杯热身赛
语言
C
递交时间
2018-12-12 16:29:39
评测时间
2018-12-12 16:29:39
评测机
分数
0
总耗时
12ms
峰值内存
3.035 MiB