Accepted
foo.cc: In function 'int main()':
foo.cc:44:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
44 | for(int i=tmp+1;i<n;i++)//前缀和,绝对操作次数
| ^~~
foo.cc:47:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
47 | long long ans=0;
| ^~~~
foo.cc: In function 'int caldiff(int, int)':
foo.cc:28:1: warning: control reaches end of non-void function [-Wreturn-type]
28 | }
| ^
[Hydro](https://hydro.ac)提供评测服务
信息
- 递交者
- 类型
- 自测
- 题目
- P1558 Problem 8C. 最少操作次数
- 语言
- C++
- 递交时间
- 2023-11-26 21:53:44
- 评测时间
- 2023-11-26 21:53:44
- 评测机
- 分数
- 10
- 总耗时
- 4ms
- 峰值内存
- 412.0 KiB