记录详情

Compile Error

foo.c: In function 'main':
foo.c:5:9: error: stray '\357' in program
  int n,k,a[10000]={0};
         ^
foo.c:5:10: error: stray '\274' in program
  int n,k,a[10000]={0};
          ^
foo.c:5:11: error: stray '\214' in program
  int n,k,a[10000]={0};
           ^
foo.c:5:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'a'
  int n,k,a[10000]={0};
            ^
foo.c:9:15: error: 'a' undeclared (first use in this function)
   scanf("%d",&a[i]);
               ^
foo.c:9:15: note: each undeclared identifier is reported only once for each function it appears in
foo.c:11:14: error: 'k' undeclared (first use in this function)
  scanf("%d",&k);
              ^
foo.c: In function 'insert':
foo.c:25:13: warning: unused variable 'y' [-Wunused-variable]
    int x=i, y;
             ^
foo.c: In function 'main':
foo.c:6:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d",&n);
  ^~~~~~~~~~~~~~
foo.c: In function 'insert':
foo.c:31:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
比赛
2021(四) 作业第二场:见面赛
语言
C
递交时间
2021-10-31 12:04:15
评测时间
2021-10-31 12:04:15
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes