Runtime Error

foo.cc: In function 'long long int LongestStr(std::string)':
foo.cc:8:15: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
    8 |  for(int i=0;i<s.size();i++)
      |              ~^~~~~~~~~
foo.cc:21:15: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   21 |  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. 2ms 256.0 KiB
#3 Runtime Error Segmentation fault 2ms 384.0 KiB
#4 Runtime Error Segmentation fault 2ms 384.0 KiB

信息

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