Wrong Answer

foo.cc: In function 'int main()':
foo.cc:9:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
    9 |  for(int i=0;i<s.size();i++)
      |              ~^~~~~~~~~
foo.cc:14:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   14 |    for(int j=i+1;j<s.size();j++)
      |                  ~^~~~~~~~~
foo.cc:18:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   18 |  for(int i=0;i<s.size()-cnt;i++)
      |              ~^~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read We, expect W. 2ms 384.0 KiB
#2 Wrong Answer Read love, expect lve. 3ms 256.0 KiB
#3 Wrong Answer Read program!, expect program. 3ms 384.0 KiB
#4 Wrong Answer Read they, expect hey. 2ms 384.0 KiB
#5 Accepted 2ms 384.0 KiB

信息

递交者
类型
递交
题目
P1079 A8-5 删除字符串中多余的一种字符
语言
C++
递交时间
2022-03-13 18:28:22
评测时间
2022-03-13 18:28:22
评测机
分数
20
总耗时
14ms
峰值内存
384.0 KiB