Accepted
foo.cc: In function ‘int main()’: foo.cc:10:12: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 10 | while(i<str1.size()) | ~^~~~~~~~~~~~ foo.cc:12:9: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 12 | if(str1[i]!=ch) | ^~ foo.cc:14:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 14 | i++; | ^
信息
- 递交者
- 类型
- 递交
- 题目
- P1061 A8-5 删除字符串中多余的一种字符
- 语言
- C++
- 递交时间
- 2025-08-14 19:37:11
- 评测时间
- 2025-08-14 19:37:11
- 评测机
- 分数
- 100
- 总耗时
- 13ms
- 峰值内存
- 536.0 KiB