Compile Error

foo.cc: In function 'int main()':
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 'nt'?
   11 |   cnt+=a[i];
      |   ^~~
      |   nt
foo.cc:13:2: error: 'cnt' was not declared in this scope; did you mean 'nt'?
   13 |  cnt/=n;
      |  ^~~
      |  nt
foo.cc:6:9: warning: unused variable 'nt' [-Wunused-variable]
    6 |  double nt=0;
      |         ^~
[Hydro](https://hydro.ac)提供评测服务

信息

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