记录详情

Compile Error

/in/foo.c:8:1: error: unknown type name 'ZX'
 ZX wang(float a[],int n)
 ^~
/in/foo.c:8:1: note: use 'struct' keyword to refer to the type
/in/foo.c: In function 'wang':
/in/foo.c:27:9: error: incompatible types when returning type 'struct ZX' but 'int' was expected
  return zx;
         ^~
/in/foo.c: In function 'main':
/in/foo.c:34:2: error: unknown type name 'ZX'
  ZX zx=wang(a,10);
  ^~
/in/foo.c:34:2: note: use 'struct' keyword to refer to the type
/in/foo.c:35:28: error: request for member 'max' in something not a structure or union
  printf("%.2f %.2f %.2f",zx.max,zx.min,zx.ag);
                            ^
/in/foo.c:35:35: error: request for member 'min' in something not a structure or union
  printf("%.2f %.2f %.2f",zx.max,zx.min,zx.ag);
                                   ^
/in/foo.c:35:42: error: request for member 'ag' in something not a structure or union
  printf("%.2f %.2f %.2f",zx.max,zx.min,zx.ag);
                                          ^
/in/foo.c:34:5: warning: variable 'zx' set but not used [-Wunused-but-set-variable]
  ZX zx=wang(a,10);
     ^~
/in/foo.c: In function 'wang':
/in/foo.c:28:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^

信息

递交者
类型
自测
语言
C
递交时间
2024-12-23 21:42:19
评测时间
2024-12-23 21:42:19
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes