Compile Error

foo.cc: In function 'int main()':
foo.cc:6:2: error: 'doublecnt' was not declared in this scope; did you mean 'double_t'?
    6 |  doublecnt=0;
      |  ^~~~~~~~~
      |  double_t
foo.cc:7:5: error: expected ';' before 'n'
    7 |  cin n;
      |     ^~
      |     ;
foo.cc:7:2: warning: statement has no effect [-Wunused-value]
    7 |  cin n;
      |  ^~~
foo.cc:11:3: error: 'cnt' was not declared in this scope; did you mean 'int'?
   11 |   cnt+=a[i];
      |   ^~~
      |   int
foo.cc:13:2: error: 'cnt' was not declared in this scope; did you mean 'int'?
   13 |  cnt/=n;
      |  ^~~
      |  int
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1100 数组元素平均值
语言
C++
递交时间
2022-07-19 08:44:18
评测时间
2022-07-19 08:44:18
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes