记录详情

Accepted

foo.cc: In function ‘void Get_nex(std::string, int*)’:
foo.cc:11:27: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
   11 |         for (int i = 1; i < p.size(); i++)
      |                         ~~^~~~~~~~~~
foo.cc: In function ‘int Smacth(std::string, std::string, int*)’:
foo.cc:32:27: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
   32 |         for (int i = 0; i < t.size(); i++)
      |                         ~~^~~~~~~~~~
foo.cc:36:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
   36 |                 if (j == p.size())
      |                     ~~^~~~~~~~~~~
foo.cc:31:13: warning: unused variable ‘i’ [-Wunused-variable]
   31 |         int i = 0, j = 0;
      |             ^
# 状态 耗时 内存占用
#1 Accepted 3ms 760.0 KiB

信息

递交者
类型
自测
语言
C++
递交时间
2025-05-09 22:35:39
评测时间
2025-05-09 22:35:39
评测机
分数
10
总耗时
3ms
峰值内存
760.0 KiB