/in/foo.cc:5:2: error: expected unqualified-id before 'float'
float min,
^~~~~
/in/foo.cc: In function 'ZX wang(float*, int)':
/in/foo.cc:12:5: error: 'struct ZX' has no member named 'min'
zx.min=a[0];
^~~
/in/foo.cc:14:17: error: found ':' in nested-name-specifier, expected '::'
for(int i=1;i<n:i++)
^
/in/foo.cc:14:16: error: 'n' is not a class, namespace, or enumeration
for(int i=1;i<n:i++)
^
/in/foo.cc:14:21: error: expected ';' before ')' token
for(int i=1;i<n:i++)
^
/in/foo.cc:18:14: error: 'struct ZX' has no member named 'min'
if(a[i]<zx.min))
^~~
/in/foo.cc:18:18: error: expected primary-expression before ')' token
if(a[i]<zx.min))
^
/in/foo.cc:22:5: error: 'struct ZX' has no member named 'ag'
zx.ag=aum/n;
^~
/in/foo.cc:22:8: error: 'aum' was not declared in this scope
zx.ag=aum/n;
^~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:31:36: error: 'struct ZX' has no member named 'min'
printf("%.2f %.2f %.2f",zx.max,zx.min,zx.ag);
^~~
/in/foo.cc:31:43: error: 'struct ZX' has no member named 'ag'
printf("%.2f %.2f %.2f",zx.max,zx.min,zx.ag);
^~