记录详情

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++;
      |                 ^
# 状态 耗时 内存占用
#1 Accepted 2ms 504.0 KiB
#2 Accepted 2ms 536.0 KiB
#3 Accepted 2ms 504.0 KiB
#4 Accepted 2ms 508.0 KiB
#5 Accepted 3ms 504.0 KiB

信息

递交者
类型
递交
题目
P1061 A8-5 删除字符串中多余的一种字符
语言
C++
递交时间
2025-08-14 19:37:11
评测时间
2025-08-14 19:37:11
评测机
分数
100
总耗时
13ms
峰值内存
536.0 KiB