Runtime Error

foo.cc: In function 'int LongestStr(std::string)':
foo.cc:7:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
    7 |  for(int i=0;i<s.size();i++)
      |              ~^~~~~~~~~
foo.cc:20:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   20 |  for(int i=0;i<v.size();++i)
      |              ~^~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 1, expect 3. 2ms 384.0 KiB
#2 Wrong Answer Read 3, expect 5. 1ms 384.0 KiB
#3 Runtime Error Segmentation fault 2ms 384.0 KiB
#4 Wrong Answer Read 24, expect 22. 1ms 384.0 KiB

信息

递交者
类型
递交
题目
P1107 最长重复子串k
语言
C++
递交时间
2022-07-19 18:06:02
评测时间
2022-07-19 18:06:02
评测机
分数
0
总耗时
8ms
峰值内存
384.0 KiB