记录详情

Compile Error

/in/foo.c: In function 'Insert':
/in/foo.c:13:7: error: stray '\357' in program
  int i;
       ^
/in/foo.c:13:8: error: stray '\274' in program
  int i;
        ^
/in/foo.c:13:9: error: stray '\233' in program
  int i;
         ^
/in/foo.c:14:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'for'
     for ( i = n - 1; i >= 0&&a[i] > x; i--)
     ^~~
/in/foo.c:14:11: error: 'i' undeclared (first use in this function)
     for ( i = n - 1; i >= 0&&a[i] > x; i--)
           ^
/in/foo.c:14:11: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:14:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
     for ( i = n - 1; i >= 0&&a[i] > x; i--)
     ^~~
/in/foo.c:16:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
  a[i + 1] = x;
  ^

信息

递交者
类型
自测
题目
A7-5 数组的有序插入函数
语言
C
递交时间
2024-10-28 20:52:53
评测时间
2024-10-28 20:52:53
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes