/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:33:15: error: 'a' undeclared (first use in this function)
scanf("%f",&a[i]);
^
/in/foo.c:33:15: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:34:2: warning: statement with no effect [-Wunused-value]
ZX zx=wang(a,10);
^~
/in/foo.c:34:5: error: expected ';' before 'zx'
ZX zx=wang(a,10);
^~
/in/foo.c:35:26: error: 'zx' undeclared (first use in this function)
printf("%.2f %.2f,%.2f",zx.max,zx.min,zx.ag);
^~
/in/foo.c: In function 'wang':
/in/foo.c:28:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^