记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:14:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   14 |         for(int i=0;i<s1.length();i++)
      |                     ~^~~~~~~~~~~~
foo.cc:27:37: error: 'strlen' was not declared in this scope
   27 |                                 i=i+strlen(s4)-1;
      |                                     ^~~~~~
foo.cc:3:1: note: 'strlen' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
    2 | #include<string>
  +++ |+#include <cstring>
    3 | using namespace std;
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P2968 4-3 爱情故事
语言
C++
递交时间
2023-12-05 23:56:45
评测时间
2023-12-05 23:56:45
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes