记录详情

Compile Error

foo.c: In function 'main':
foo.c:6:7: error: stray '\357' in program
  int b;
       ^
foo.c:6:8: error: stray '\274' in program
  int b;
        ^
foo.c:6:9: error: stray '\233' in program
  int b;
         ^
foo.c:7:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'
  int i=0;
  ^~~
foo.c:10:10: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'int' [-Wformat=]
  scanf("%d",a[i]);
         ~^  ~~~~
foo.c:11:6: error: redefinition of 'i'
  int i=0;
      ^
foo.c:7:6: note: previous definition of 'i' was here
  int i=0;
      ^
foo.c:12:11: error: stray '\' in program
  if(a[i]==\0)
           ^
foo.c:13:3: error: 'b' undeclared (first use in this function)
   b=a[i-1];
   ^
foo.c:13:3: note: each undeclared identifier is reported only once for each function it appears in
foo.c:10:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d",a[i]);
  ^~~~~~~~~~~~~~~~
foo.c:27:2: warning: ignoring return value of 'system', declared with attribute warn_unused_result [-Wunused-result]
  system("pause");
  ^~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
语言
C
递交时间
2021-10-24 15:00:59
评测时间
2021-10-24 15:01:21
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes