Accepted

foo.cc: In function ‘bool imp(std::string)’:
foo.cc:6:26: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
    6 |         for(int j = 0; j <= s.length(); j++){
      |                        ~~^~~~~~~~~~~~~
foo.cc: In function ‘bool n16(std::string)’:
foo.cc:12:26: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
   12 |         for(int j = 0; j <= s.length(); j++){
      |                        ~~^~~~~~~~~~~~~
foo.cc: In function ‘bool n10(std::string)’:
foo.cc:18:26: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
   18 |         for(int j = 0; j <= s.length(); j++){
      |                        ~~^~~~~~~~~~~~~
foo.cc: In function ‘bool n8(std::string)’:
foo.cc:24:26: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
   24 |         for(int j = 0; j <= s.length(); j++){
      |                        ~~^~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 2ms 324.0 KiB
#2 Accepted 2ms 536.0 KiB
#3 Accepted 3ms 536.0 KiB

信息

递交者
类型
递交
比赛
GESP3级 考前练习
语言
C++
递交时间
2024-08-22 20:22:21
评测时间
2024-08-22 20:22:21
评测机
分数
100
总耗时
8ms
峰值内存
536.0 KiB