/ OPS /

记录详情

Accepted

/in/foo.cc: In function 'int maxP(const string&, int)':
/in/foo.cc:6:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
    6 |     while (left >= 0 && right < str.length() && str[left] == str[right]) {
      |                         ~~~~~~^~~~~~~~~~~~~~
/in/foo.cc: In function 'int maxPa(const string&, int)':
/in/foo.cc:15:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   15 |     while (left >= 0 && right < str.length() && str[left] == str[right]) {
      |                         ~~~~~~^~~~~~~~~~~~~~
/in/foo.cc: In function 'int lon(const string&)':
/in/foo.cc:27:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   27 |     for (int i = 0; i < str.length(); ++i) {
      |                     ~~^~~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 3ms 340.0 KiB

信息

递交者
类型
递交
比赛
2024_2025(1)C0023实验7+李强老师班级
语言
C++
递交时间
2024-12-19 16:29:57
评测时间
2024-12-19 16:29:57
评测机
分数
10
总耗时
3ms
峰值内存
340.0 KiB