Compile Error
foo.cc: In function 'int main()': foo.cc:7:14: error: 'i' was not declared in this scope 7 | for(int n=0;i<a;i++) | ^ foo.cc:11:14: error: 'i' was not declared in this scope 11 | for(int n=0;i<a;i++) | ^ foo.cc:16:8: error: 'd' was not declared in this scope 16 | cout<<d; | ^ foo.cc:6:6: warning: unused variable 'n' [-Wunused-variable] 6 | int n[a]; | ^ foo.cc:15:9: warning: unused variable 'c' [-Wunused-variable] 15 | double c=1.0*b/a; | ^
[Hydro](https://hydro.ac)提供评测服务
信息
- 递交者
- 类型
- 递交
- 题目
- P1100 数组元素平均值
- 语言
- C++
- 递交时间
- 2022-07-18 17:49:56
- 评测时间
- 2022-07-18 17:49:56
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes