记录详情

Accepted

foo.cc: In function 'bool part(std::string&, std::string&)':
foo.cc:26:34: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   26 |         for (int i = 0, j = 0; j < b.size(); j++)
      |                                ~~^~~~~~~~~~
foo.cc:27:41: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   27 |                 if (b[j] == a[i] && ++i == a.size())
      |                                     ~~~~^~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 284.0 KiB
#2 Accepted 2ms 284.0 KiB
#3 Accepted 2ms 284.0 KiB
#4 Accepted 2ms 284.0 KiB

信息

递交者
类型
自测
题目
P1402 Problem 4B. 后缀机器
语言
C++
递交时间
2023-05-14 20:44:51
评测时间
2023-05-14 20:44:51
评测机
分数
40
总耗时
8ms
峰值内存
284.0 KiB