/ Vijos /

记录详情

Wrong Answer

foo.cc: In function 'int bfs(int)':
foo.cc:22:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   22 |         for(int i=0;i<p[t].nxt.size();++i)
      |                     ~^~~~~~~~~~~~~~~~
foo.cc: In function 'void dfs(int, int)':
foo.cc:31:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   31 |     for(int i=0;i<p[x].nxt.size();++i)
      |                 ~^~~~~~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:50:18: warning: unused variable 'ans' [-Wunused-variable]
   50 |     int x=bfs(0),ans=0;
      |                  ^~~
foo.cc:42:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   42 |     scanf("%d",&n);
      |     ~~~~~^~~~~~~~~
foo.cc:46:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   46 |         scanf("%d%d",&u,&v);
      |         ~~~~~^~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 9ms 7.25 MiB
#2 Wrong Answer 4a5 > 4 6a8,9 > 7 > 8 7a11 15ms 7.25 MiB
#3 Wrong Answer 14a15 > 57 15ms 7.25 MiB
#4 Wrong Answer 30a31 > 175 49a51 > 306 13ms 7.25 MiB
#5 Accepted 14ms 7.25 MiB
#6 Wrong Answer 3a4,10 > 64 > 72 > 107 > 13 13ms 7.625 MiB
#7 Wrong Answer 0a1 > 2 1a3,6 > 49 > 65 > 1 70ms 10.742 MiB
#8 Wrong Answer 300a301,311 > 38525 > 38811 189ms 13.992 MiB
#9 Wrong Answer 443a444 > 77391 445a447,466 > 249ms 14.117 MiB
#10 Wrong Answer 497a498 > 116718 499a501 > 11 195ms 14.254 MiB

信息

递交者
类型
递交
题目
P1476 旅游规划(csapc)
语言
C++
递交时间
2022-07-29 10:34:13
评测时间
2022-07-29 10:34:13
评测机
分数
20
总耗时
786ms
峰值内存
14.254 MiB