/ 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 Wrong Answer User output longer than standard answer. 18ms 7.25 MiB
#2 Wrong Answer User output longer than standard answer. 19ms 7.25 MiB
#3 Wrong Answer User output longer than standard answer. 18ms 7.25 MiB
#4 Wrong Answer User output longer than standard answer. 15ms 7.25 MiB
#5 Wrong Answer User output longer than standard answer. 12ms 7.25 MiB
#6 Wrong Answer User output longer than standard answer. 20ms 7.625 MiB
#7 Wrong Answer User output longer than standard answer. 86ms 10.742 MiB
#8 Wrong Answer User output longer than standard answer. 191ms 13.992 MiB
#9 Wrong Answer User output longer than standard answer. 228ms 14.242 MiB
#10 Wrong Answer User output longer than standard answer. 203ms 14.242 MiB

信息

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