Accepted

/in/foo.cc: In function 'bool ispass(std::__cxx11::string)':
/in/foo.cc:9:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i=0;i<s.size();i++)
              ~^~~~~~~~~
/in/foo.cc:19:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i=0;i<apeared.size();i++)
              ~^~~~~~~~~~~~~~~
/in/foo.cc:21:21: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   if(apeared[i]>='a'&&apeared[i]<='z'||apeared[i]>='A'&&apeared[i]<='Z'||apeared[i]>='0'&&apeared[i]<='9')
                      
/in/foo.cc:21:89: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   if(apeared[i]>='a'&&apeared[i]<='z'||apeared[i]>='A'&&apeared[i]<='Z'||apeared[i]>='0'&&apeared[i]<='9')
                                                                                          
# 状态 耗时 内存占用
#1 Accepted 1ms 420.0 KiB
#2 Accepted 1ms 360.0 KiB
#3 Accepted 1ms 356.0 KiB
#4 Accepted 1ms 376.0 KiB

信息

递交者
类型
递交
题目
P2596 密码合规检测3级2 202306
比赛
春季中级班GESP二三级编程比赛
语言
C++
递交时间
2024-03-10 19:52:59
评测时间
2024-03-10 19:52:59
评测机
分数
100
总耗时
6ms
峰值内存
420.0 KiB