记录详情

Accepted

/in/foo.cc: In function 'bool check(const string&)':
/in/foo.cc:5:32: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  if (s.size() == 1 && "0" <= s && s <= "9" || s.size() == 2 && "10" <= s && s <= "99" || s.size() == 3 && "100" <= s && s <= "255")return true;
      ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
/in/foo.cc:5:118: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  if (s.size() == 1 && "0" <= s && s <= "9" || s.size() == 2 && "10" <= s && s <= "99" || s.size() == 3 && "100" <= s && s <= "255")return true;
                                                                                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
/in/foo.cc: In function 'bool isLeagal(const string&)':
/in/foo.cc:10:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for (int i = 0; i<s.size(); ++i) {
                  ~^~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 4ms 352.0 KiB
#2 Accepted 2ms 204.0 KiB
#3 Accepted 2ms 372.0 KiB

信息

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