什么?四十个点都不通过???

level0的大神解析也没过,请各路大咖指教
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)
| ~^~~~~~~~~~~
Hydro提供评测服务

状态 耗时 内存占用

#1 Runtime Error Segmentation fault 2ms 640.0 KiB
#2 Runtime Error Segmentation fault 2ms 640.0 KiB
#3 Runtime Error Segmentation fault 6ms 768.0 KiB
#4 Runtime Error Segmentation fault 3ms 640.0 KiB
#5 Runtime Error Segmentation fault 5ms 652.0 KiB
#6 Runtime Error Segmentation fault 3ms 640.0 KiB
#7 Runtime Error Segmentation fault 3ms 640.0 KiB
#8 Runtime Error Segmentation fault 2ms 640.0 KiB
#9 Runtime Error Segmentation fault 4ms 640.0 KiB
#10 Runtime Error Segmentation fault 4ms 640.0 KiB
#11 Runtime Error Segmentation fault 2ms 640.0 KiB
#12 Runtime Error Segmentation fault 2ms 640.0 KiB
#13 Runtime Error Segmentation fault 2ms 640.0 KiB
#14 Runtime Error Segmentation fault 5ms 640.0 KiB
#15 Runtime Error Segmentation fault 2ms 640.0 KiB
#16 Runtime Error Segmentation fault 2ms 768.0 KiB
#17 Runtime Error Segmentation fault 2ms 640.0 KiB
#18 Runtime Error Segmentation fault 2ms 640.0 KiB
#19 Runtime Error Segmentation fault 2ms 640.0 KiB
#20 Runtime Error Segmentation fault 2ms 640.0 KiB
#21 Runtime Error Segmentation fault 2ms 640.0 KiB
#22 Runtime Error Segmentation fault 2ms 640.0 KiB
#23 Runtime Error Segmentation fault 2ms 640.0 KiB
#24 Runtime Error Segmentation fault 2ms 640.0 KiB
#25 Runtime Error Segmentation fault 2ms 640.0 KiB
#26 Runtime Error Segmentation fault 2ms 640.0 KiB
#27 Runtime Error Segmentation fault 4ms 640.0 KiB
#28 Runtime Error Segmentation fault 4ms 640.0 KiB
#29 Runtime Error Segmentation fault 5ms 640.0 KiB
#30 Runtime Error Segmentation fault 4ms 640.0 KiB
#31 Runtime Error Segmentation fault 5ms 640.0 KiB
#32 Runtime Error Segmentation fault 4ms 640.0 KiB
#33 Runtime Error Segmentation fault 2ms 640.0 KiB
#34 Runtime Error Segmentation fault 2ms 640.0 KiB
#35 Runtime Error Segmentation fault 2ms 768.0 KiB
#36 Runtime Error Segmentation fault 4ms 640.0 KiB
#37 Runtime Error Segmentation fault 3ms 640.0 KiB
#38 Runtime Error Segmentation fault 6ms 640.0 KiB
#39 Runtime Error Segmentation fault 3ms 640.0 KiB
#40 Runtime Error Segmentation fault 2ms 640.0 KiB

1 条评论

  • 1

信息

ID
1005
难度
8
分类
字符串 | KMP 点击显示
标签
(无)
递交数
6613
已通过
623
通过率
9%
被复制
29
上传者