/ 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:49:18: warning: unused variable 'ans' [-Wunused-variable]
   49 |     int x=bfs(0),ans=0;
      |                  ^~~
foo.cc:41:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   41 |     scanf("%d",&n);
      |     ~~~~~^~~~~~~~~
foo.cc:45:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   45 |         scanf("%d%d",&u,&v);
      |         ~~~~~^~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 8ms 6.5 MiB
#2 Wrong Answer 4a5 > 4 6a8,9 > 7 > 8 7a11 8ms 6.5 MiB
#3 Wrong Answer 14a15 > 57 8ms 6.5 MiB
#4 Wrong Answer 30a31 > 175 49a51 > 306 8ms 6.5 MiB
#5 Accepted 15ms 6.5 MiB
#6 Wrong Answer 3a4,10 > 64 > 72 > 107 > 13 12ms 6.902 MiB
#7 Wrong Answer 0a1 > 2 1a3,6 > 49 > 65 > 1 80ms 11.316 MiB
#8 Wrong Answer 300a301,311 > 38525 > 38811 179ms 16.117 MiB
#9 Wrong Answer 443a444 > 77391 445a447,466 > 164ms 16.117 MiB
#10 Wrong Answer 497a498 > 116718 499a501 > 11 141ms 16.254 MiB

信息

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