Compile Error
/in/foo.cc: In function 'int main()': /in/foo.cc:25:6: warning: unused variable 'midd' [-Wunused-variable] int midd=(n+1)/2; ^~~~ /in/foo.cc:26:11: error: 'i' was not declared in this scope s+=abs(a[i]-midd); ^ /in/foo.cc:26:14: error: 'midd' was not declared in this scope s+=abs(a[i]-midd); ^~~~
信息
- 递交者
- 类型
- 递交
- 题目
- 输油管道问题
- 语言
- C++
- 递交时间
- 2019-03-03 15:51:51
- 评测时间
- 2019-03-03 15:51:51
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes