/ Vijos /

记录详情

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](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Runtime Error Segmentation fault 5ms 640.0 KiB
#2 Runtime Error Segmentation fault 2ms 640.0 KiB
#3 Runtime Error Segmentation fault 4ms 640.0 KiB
#4 Runtime Error Segmentation fault 3ms 640.0 KiB
#5 Runtime Error Segmentation fault 3ms 640.0 KiB
#6 Runtime Error Segmentation fault 2ms 640.0 KiB
#7 Runtime Error Segmentation fault 3ms 640.0 KiB
#8 Runtime Error Segmentation fault 5ms 640.0 KiB
#9 Runtime Error Segmentation fault 3ms 640.0 KiB
#10 Runtime Error Segmentation fault 3ms 640.0 KiB
#11 Runtime Error Segmentation fault 2ms 640.0 KiB
#12 Runtime Error Segmentation fault 3ms 640.0 KiB
#13 Runtime Error Segmentation fault 2ms 640.0 KiB
#14 Runtime Error Segmentation fault 2ms 640.0 KiB
#15 Runtime Error Segmentation fault 3ms 640.0 KiB
#16 Runtime Error Segmentation fault 2ms 640.0 KiB
#17 Runtime Error Segmentation fault 3ms 640.0 KiB
#18 Runtime Error Segmentation fault 2ms 640.0 KiB
#19 Runtime Error Segmentation fault 4ms 640.0 KiB
#20 Runtime Error Segmentation fault 3ms 640.0 KiB
#21 Runtime Error Segmentation fault 3ms 640.0 KiB
#22 Runtime Error Segmentation fault 3ms 768.0 KiB
#23 Runtime Error Segmentation fault 4ms 640.0 KiB
#24 Runtime Error Segmentation fault 4ms 584.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 3ms 640.0 KiB
#28 Runtime Error Segmentation fault 2ms 640.0 KiB
#29 Runtime Error Segmentation fault 3ms 640.0 KiB
#30 Runtime Error Segmentation fault 4ms 640.0 KiB
#31 Runtime Error Segmentation fault 3ms 640.0 KiB
#32 Runtime Error Segmentation fault 5ms 640.0 KiB
#33 Runtime Error Segmentation fault 2ms 640.0 KiB
#34 Runtime Error Segmentation fault 4ms 640.0 KiB
#35 Runtime Error Segmentation fault 3ms 640.0 KiB
#36 Runtime Error Segmentation fault 2ms 640.0 KiB
#37 Runtime Error Segmentation fault 2ms 640.0 KiB
#38 Runtime Error Segmentation fault 2ms 640.0 KiB
#39 Runtime Error Segmentation fault 5ms 640.0 KiB
#40 Runtime Error Segmentation fault 3ms 640.0 KiB

信息

递交者
类型
递交
题目
P1005 超长数字串
语言
C++
递交时间
2022-09-16 19:53:18
评测时间
2022-09-16 19:53:18
评测机
分数
0
总耗时
142ms
峰值内存
768.0 KiB