Compile Error
foo.cc: In function 'int main()':
foo.cc:11:3: error: 'ans' was not declared in this scope; did you mean 'abs'?
   11 |   ans+=x;
      |   ^~~
      |   abs
foo.cc:13:32: error: 'ans' was not declared in this scope; did you mean 'abs'?
   13 |  cout<<fixed<<setprecision(2)<<ans/n;
      |                                ^~~
      |                                abs
foo.cc:6:8: warning: unused variable 'a' [-Wunused-variable]
    6 |  int n,a[105]={0},j=0,x;
      |        ^
foo.cc:6:19: warning: unused variable 'j' [-Wunused-variable]
    6 |  int n,a[105]={0},j=0,x;
      |                   ^
  [Hydro](https://hydro.ac)提供评测服务
信息
- 递交者
 - 类型
 - 递交
 - 题目
 - P1085 数组元素平均值
 - 语言
 - C++
 - 递交时间
 - 2022-07-15 21:27:12
 - 评测时间
 - 2022-07-15 21:27:12
 - 评测机
 
- 分数
 - 0
 - 总耗时
 - 0ms
 - 峰值内存
 - 0 Bytes