Wrong Answer

foo.cc: In function 'int main()':
foo.cc:10:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   10 |  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()-1;j++)
      |                  ~^~~~~~~~~~~
foo.cc:17:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   17 |  for(int i=0;i<s.size()-x;i++)
      |              ~^~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Standard answer longer than user output. 2ms 384.0 KiB
#2 Wrong Answer Read loe, expect lve. 2ms 384.0 KiB
#3 Wrong Answer Standard answer longer than user output. 3ms 512.0 KiB
#4 Wrong Answer Standard answer longer than user output. 2ms 384.0 KiB
#5 Accepted 3ms 384.0 KiB

信息

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