/in/foo.c:8:4: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'wang'
ZX wang(float a[],int n)
^~~~
/in/foo.c: In function 'main':
/in/foo.c:25:2: error: unknown type name 'ZX'
ZX zx=wang(a,10);
^~
/in/foo.c:25:2: note: use 'struct' keyword to refer to the type
/in/foo.c:25:8: warning: implicit declaration of function 'wang' [-Wimplicit-function-declaration]
ZX zx=wang(a,10);
^~~~
/in/foo.c:26: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:26: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:26: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:25:5: warning: variable 'zx' set but not used [-Wunused-but-set-variable]
ZX zx=wang(a,10);
^~