记录详情

Compile Error

/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);
                                           ^~

信息

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