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)提供评测服务