Runtime Error

foo.cc: In function ‘int getNum(int*, int, int)’:
foo.cc:14:5: warning: no return statement in function returning non-void [-Wreturn-type]
   14 |     }
      |     ^
foo.cc: In function ‘bool find(int)’:
foo.cc:87:10: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
   87 |      if(j==s.size()-1&&s[i]=='0') return false;
      |         ~^~~~~~~~~~~~
foo.cc:90:12: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
   90 |        if(j>=s.size()-1) return true;
      |           ~^~~~~~~~~~~~
foo.cc:91:12: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
   91 |        if(n>=s.size()-1) {n=s.size()-1;if(!tailCheck(i,j,m,n)) return false;}
      |           ~^~~~~~~~~~~~
foo.cc: In function ‘bool Equal000(std::string)’:
foo.cc:168:19: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  168 |      for(int i=0;i<s1.size();++i)
      |                  ~^~~~~~~~~~
foo.cc: In function ‘int main()’:
foo.cc:196:18: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  196 |     for(int l=1;l<=s1.size();++l)
      |                 ~^~~~~~~~~~~
# 状态 耗时 内存占用
#1 Runtime Error Segmentation fault 3ms 580.0 KiB
#2 Runtime Error Segmentation fault 3ms 576.0 KiB
#3 Runtime Error Segmentation fault 3ms 536.0 KiB
#4 Runtime Error Segmentation fault 2ms 580.0 KiB
#5 Runtime Error Segmentation fault 2ms 536.0 KiB
#6 Runtime Error Segmentation fault 3ms 580.0 KiB
#7 Runtime Error Segmentation fault 3ms 536.0 KiB
#8 Runtime Error Segmentation fault 2ms 580.0 KiB
#9 Runtime Error Segmentation fault 3ms 580.0 KiB
#10 Runtime Error Segmentation fault 3ms 536.0 KiB

信息

递交者
类型
递交
题目
P1056 三国通史(其四)
语言
C++
递交时间
2024-04-25 13:32:47
评测时间
2024-05-13 20:40:35
评测机
分数
0
总耗时
31ms
峰值内存
580.0 KiB