/ WHOJ /

记录详情

Wrong Answer

foo.cc: In function 'void dfs(int, int)':
foo.cc:13:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   13 |     for(int i=0; i<v[now].size(); i++)
      |                  ~^~~~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:98:13: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
   98 |             while(d[x]>d[z]+1)
      |             ^~~~~
foo.cc:100:4: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while'
  100 |    cout<<sum[z]-sum[x]<<endl;
      |    ^~~~
Found 4 testcases.
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 654, expect 0. 25ms 23.5 MiB
#2 Accepted 25ms 23.375 MiB
#3 Accepted 23ms 23.375 MiB
#4 Wrong Answer Read 18, expect 20. 24ms 23.375 MiB

信息

递交者
类型
递交
题目
P1079 「StOI-1」树上询问
题目数据
下载
语言
C++
递交时间
2022-03-04 20:39:47
评测时间
2022-03-04 20:39:47
评测机
分数
50
总耗时
99ms
峰值内存
23.5 MiB