记录详情

Compile Error

foo.c:33:29: error: unknown type name 'xy'
   33 | int Search(int a[][N],int n,xy b[],int i)
      |                             ^~
foo.c: In function 'main':
foo.c:48:9: error: unknown type name 'xy'; use 'struct' keyword to refer to the type
   48 |         xy b[N];
      |         ^~
      |         struct 
foo.c:50:35: error: request for member 'x' in something not a structure or union
   50 |                 scanf("%d%d",&b[i].x,&b[i].y);
      |                                   ^
foo.c:50:43: error: request for member 'y' in something not a structure or union
   50 |                 scanf("%d%d",&b[i].x,&b[i].y);
      |                                           ^
foo.c:53:24: warning: implicit declaration of function 'Search' [-Wimplicit-function-declaration]
   53 |                 result=Search(a,n,b,i);
      |                        ^~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1543 Problem 6A. 台阶
比赛
2023秋 悬赏令第六周
语言
C
递交时间
2023-11-14 14:20:54
评测时间
2023-11-14 18:55:14
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes