Accepted

/in/foo.cc: In function 'bool s(std::string, std::string)':
/in/foo.cc:11:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   11 |         for(int i=0;i<a.size();i++)
      |                     ~^~~~~~~~~
/in/foo.cc:25:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   25 |         while(i<shorter.size() and j<longer.size())
      |               ~^~~~~~~~~~~~~~~
/in/foo.cc:25:37: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   25 |         while(i<shorter.size() and j<longer.size())
      |                                    ~^~~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 1ms 476.0 KiB
#2 Accepted 1ms 536.0 KiB
#3 Accepted 1ms 528.0 KiB
#4 Accepted 1ms 528.0 KiB
#5 Accepted 1ms 320.0 KiB

信息

递交者
类型
递交
题目
P2628 相似字符串4级1 2024.3
比赛
2025.3.16高级班练习
语言
C++
递交时间
2025-03-21 21:51:48
评测时间
2025-03-21 21:51:48
评测机
分数
100
总耗时
9ms
峰值内存
536.0 KiB