记录详情

Accepted

/in/foo.cc: In function 'void del(std::__cxx11::string&, int, int)':
/in/foo.cc:12:7: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  if(si>s1.length()) return;
     ~~^~~~~~~~~~~~
/in/foo.cc:13:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(i=si;i<si+len && i<s1.length();i++)
                       ~^~~~~~~~~~~~
/in/foo.cc: In function 'void output(std::__cxx11::string)':
/in/foo.cc:21:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for (i = 0; i < s1.length(); i++)
              ~~^~~~~~~~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:31:6: warning: unused variable 'i' [-Wunused-variable]
  int i,si,len;
      ^
# 状态 耗时 内存占用
#1 Accepted 1ms 356.0 KiB
#2 Accepted 1ms 412.0 KiB
#3 Accepted 1ms 376.0 KiB
#4 Accepted 1ms 376.0 KiB
#5 Accepted 1ms 340.0 KiB

信息

递交者
类型
递交
题目
P2955 A8-7 删除字符串中一个子串
语言
C++
递交时间
2023-11-11 09:18:50
评测时间
2023-11-11 09:18:50
评测机
分数
100
总耗时
8ms
峰值内存
412.0 KiB