Accepted

/in/foo.cc: In function 'bool a(std::string)':
/in/foo.cc:13:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   13 |         for(int i=0;i<s.size();i++)
      |                     ~^~~~~~~~~
/in/foo.cc: In function 'bool b(std::string)':
/in/foo.cc:20:22: 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<s.size();i++)
      |                     ~^~~~~~~~~
/in/foo.cc:20:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
   20 |         for(int i=0;i<s.size();i++)
      |         ^~~
/in/foo.cc:22:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
   22 |                 return ok;
      |                 ^~~~~~
# 状态 耗时 内存占用
#1 Accepted 2ms 484.0 KiB
#2 Accepted 1ms 520.0 KiB
#3 Accepted 1ms 340.0 KiB
#4 Accepted 1ms 404.0 KiB
#5 Accepted 1ms 528.0 KiB
#6 Accepted 1ms 500.0 KiB
#7 Accepted 1ms 348.0 KiB
#8 Accepted 1ms 488.0 KiB
#9 Accepted 1ms 532.0 KiB
#10 Accepted 1ms 532.0 KiB

信息

递交者
类型
递交
题目
P3012 密码强度202512GESP3级T1
语言
C++
递交时间
2026-05-30 13:09:38
评测时间
2026-05-30 13:09:38
评测机
分数
100
总耗时
17ms
峰值内存
532.0 KiB