记录详情

Accepted

foo.cc: In function 'bool check(int)':
foo.cc:18:34: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   if (((s >> i) & 1) && ((s >> i + 1) & 1))
                                ~~^~~
foo.cc: In function 'int main()':
foo.cc:42:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for (int i = 0; i < state.size(); ++ i)
                  ~~^~~~~~~~~~~~~~
foo.cc:43:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for (int j = 0; j < state.size(); ++ j)
                   ~~^~~~~~~~~~~~~~
foo.cc:53:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    for (int a = 0; a < state.size(); ++ a)
                    ~~^~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 768.0 KiB

信息

递交者
类型
自测
题目
P1003 放置国王
语言
C++
递交时间
2021-08-13 09:33:20
评测时间
2021-08-13 09:33:20
评测机
分数
10
总耗时
2ms
峰值内存
768.0 KiB