记录详情

Compile Error

foo.c: In function 'Search':
foo.c:8:4: error: 'xi' undeclared (first use in this function); did you mean 'xb'?
    8 |    xi;
      |    ^~
      |    xb
foo.c:8:4: note: each undeclared identifier is reported only once for each function it appears in
foo.c:9:9: error: stray '\357' in program
    9 |    break;
      |         ^
foo.c:9:10: error: stray '\274' in program
    9 |    break;
      |          ^
foo.c:9:11: error: stray '\233' in program
    9 |    break;
      |           ^
foo.c:9:9: error: expected ';' before '}' token
    9 |    break;
      |         ^
      |         ;
   10 |   }
      |   ~      
foo.c: In function 'main':
foo.c:15:17: error: stray '\357' in program
   15 |  int a[1000]={0};
      |                 ^
foo.c:15:18: error: stray '\274' in program
   15 |  int a[1000]={0};
      |                  ^
foo.c:15:19: error: stray '\233' in program
   15 |  int a[1000]={0};
      |                   ^
foo.c:16:3: error: expected ',' or ';' before 'int'
   16 |   int n,x,i;
      |   ^~~
foo.c:17:14: error: 'n' undeclared (first use in this function)
   17 |  scanf("%d",&n);
      |              ^
foo.c:18:6: error: 'i' undeclared (first use in this function)
   18 |  for(i=0;i<n;i++)
      |      ^
foo.c:19:15: error: 'x' undeclared (first use in this function)
   19 |   scanf("%d",&x);
      |               ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
A7-4 数组的查找函数
比赛
2022春 C语言课程设计 作业2
语言
C
递交时间
2022-03-27 21:26:42
评测时间
2022-03-27 21:26:42
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes