/ Vijos /

记录详情

Wrong Answer

foo.cc: In function 'int main()':
foo.cc:30:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   30 |  for(int i=0;i<node[1].v.size();i++) {
      |              ~^~~~~~~~~~~~~~~~~
foo.cc:32:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   32 |   for(int j=i+1;j<node[1].v.size();j++) {
      |                 ~^~~~~~~~~~~~~~~~~
foo.cc:37:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   37 |   if(i==node[1].h) break; flag=true;
      |   ^~
foo.cc:37:27: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   37 |   if(i==node[1].h) break; flag=true;
      |                           ^~~~
foo.cc:41:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   41 |    for(int k=1;k<=node[j].v.size();k++) {
      |                ~^~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 0, expect 864. 2ms 384.0 KiB
#2 Accepted 3ms 384.0 KiB
#3 Wrong Answer Read 0, expect 72. 2ms 384.0 KiB
#4 Wrong Answer Read 0, expect 245. 2ms 384.0 KiB
#5 Wrong Answer Read 0, expect 99. 2ms 384.0 KiB
#6 Accepted 9ms 400.0 KiB
#7 Wrong Answer Read 0, expect 64. 4ms 384.0 KiB
#8 Accepted 4ms 504.0 KiB
#9 Accepted 132ms 640.0 KiB
#10 Accepted 154ms 640.0 KiB

信息

递交者
类型
递交
题目
P1059 积木城堡
语言
C++
递交时间
2022-01-19 19:56:26
评测时间
2022-01-19 19:56:26
评测机
分数
50
总耗时
319ms
峰值内存
640.0 KiB