记录详情

Accepted

foo.cc: In function 'int main()':
foo.cc:20:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   20 |         for (int i = 0; i < f.length(); i++)
      |                         ~~^~~~~~~~~~~~
foo.cc:22:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   22 |         for (int j = 0; j < g.length(); j++)
      |                         ~~^~~~~~~~~~~~
foo.cc:28:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   28 |         if (cnt < g.length())
      |             ~~~~^~~~~~~~~~~~
foo.cc:34:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   34 |         for (j = 0; j < g.length(); j++)
      |                     ~~^~~~~~~~~~~~
foo.cc:36:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   36 |                 for (; i < f.length(); i++)
      |                        ~~^~~~~~~~~~~~
foo.cc:45:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   45 |         if (count == g.length())
      |             ~~~~~~^~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 284.0 KiB

信息

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