记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:6:10: error: 'i' undeclared (first use in this function)
  int n,a[i];
          ^
/in/foo.c:6:10: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:8:3: warning: assignment makes integer from pointer without a cast [-Wint-conversion]
  n=strlen a[i];
   ^
/in/foo.c:8:11: error: expected ';' before 'a'
  n=strlen a[i];
           ^
/in/foo.c:14:13: warning: left-hand operand of comma expression has no effect [-Wunused-value]
    a[i]=temp,temp=a[i+1],a[i+1]=a[i];
             ^
/in/foo.c:14:25: warning: left-hand operand of comma expression has no effect [-Wunused-value]
    a[i]=temp,temp=a[i+1],a[i+1]=a[i];
                         ^
/in/foo.c:6:8: warning: unused variable 'a' [-Wunused-variable]
  int n,a[i];
        ^

信息

递交者
类型
递交
题目
我咽下一枚铁做的月亮
语言
C
递交时间
2020-02-03 15:17:23
评测时间
2020-02-03 15:17:23
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes