记录详情

Runtime Error

foo.cc: In function ‘void GetNext(std::string, int*)’:
foo.cc:8:18: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
    8 |         while (j < t.length() - 1)
      |                ~~^~~~~~~~~~~~~~~~
foo.cc: In function ‘int KMP(std::string, std::string)’:
foo.cc:26:18: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
   26 |         while (i < s.length() && j < t.length())
      |                ~~^~~~~~~~~~~~
foo.cc:26:36: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
   26 |         while (i < s.length() && j < t.length())
      |                                  ~~^~~~~~~~~~~~
foo.cc:39:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
   39 |         if (j  >= t.length())
      |             ~~~^~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Runtime Error Segmentation fault 3ms 548.0 KiB

信息

递交者
类型
自测
题目
P1002 硕哥的最短路
语言
C++
递交时间
2025-09-04 14:04:03
评测时间
2025-09-08 21:47:38
评测机
分数
0
总耗时
3ms
峰值内存
548.0 KiB