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