/ OPS /

记录详情

Runtime Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:8:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
    8 |    for (int i = 0; i < b.length(); i++)
      |                    ~~^~~~~~~~~~~~
/in/foo.cc:10:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   10 |     for (int j = 0; j < a.length(); j++)
      |                     ~~^~~~~~~~~~~~
/in/foo.cc:11:17: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   11 |      if (a[j+i] = b[i])
# 状态 耗时 内存占用
#1 Runtime Error 3ms 356.0 KiB

信息

递交者
类型
递交
题目
P1062 找子串
语言
C++
递交时间
2025-03-02 10:07:53
评测时间
2025-03-02 12:03:27
评测机
分数
0
总耗时
3ms
峰值内存
356.0 KiB