记录详情

Wrong Answer

/in/foo.cc: In function 'bool check(std::__cxx11::string)':
/in/foo.cc:5:26: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  if(s.length()==1&&"0"<=s&&s<="9"||s.length()==2&&"10"<=s&&s<="99"||s.length()==2&&"100"<=s&&s<="199"||s.length()==2&&"200"<=s&&s<="255")return true;
     ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
/in/foo.cc:5:92: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  if(s.length()==1&&"0"<=s&&s<="9"||s.length()==2&&"10"<=s&&s<="99"||s.length()==2&&"100"<=s&&s<="199"||s.length()==2&&"200"<=s&&s<="255")return true;
                                                                     ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
/in/foo.cc:5:127: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  if(s.length()==1&&"0"<=s&&s<="9"||s.length()==2&&"10"<=s&&s<="99"||s.length()==2&&"100"<=s&&s<="199"||s.length()==2&&"200"<=s&&s<="255")return true;
                                                                                                        ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
/in/foo.cc: In function 'bool isLeagal(std::__cxx11::string)':
/in/foo.cc:10:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i=0;i<s.length();++i){
              ~^~~~~~~~~~~
# 状态 耗时 内存占用
#1 Wrong Answer 3ms 360.0 KiB
#2 Accepted 3ms 336.0 KiB
#3 Wrong Answer 3ms 372.0 KiB

信息

递交者
类型
递交
题目
合法ip
语言
C++
递交时间
2018-03-23 20:34:21
评测时间
2018-03-23 20:34:21
评测机
分数
10
总耗时
10ms
峰值内存
372.0 KiB