/ WHOJ /

记录详情

Wrong Answer

foo.cc: In function 'void dfs(int)':
foo.cc:38:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   38 |     for(int i=0;i<a[u].size();i++)
      |                 ~^~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:47:10: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
   47 |  scanf("%d %d",&n,&k);
      |         ~^     ~~
      |          |     |
      |          int*  long long int*
      |         %lld
foo.cc:47:13: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
   47 |  scanf("%d %d",&n,&k);
      |            ~^     ~~
      |             |     |
      |             int*  long long int*
      |            %lld
foo.cc:62:14: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
   62 |     printf("%d",ans);
      |             ~^  ~~~
      |              |  |
      |              |  long long int
      |              int
      |             %lld
foo.cc:47:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   47 |  scanf("%d %d",&n,&k);
      |  ~~~~~^~~~~~~~~~~~~~~
foo.cc:51:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   51 |         scanf("%d %d %d",&u,&t,&w);
      |         ~~~~~^~~~~~~~~~~~~~~~~~~~~
Found 10 testcases.
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 925632038, expect 5739. 15ms 5.625 MiB
#2 Wrong Answer Read 973253572, expect 23245. 14ms 5.75 MiB
#3 Wrong Answer Read 497414282, expect 13418. 12ms 5.5 MiB
#4 Wrong Answer Read 488977983, expect 20215. 13ms 5.625 MiB
#5 Wrong Answer Read 534487429, expect 570. 16ms 5.375 MiB
#6 Wrong Answer Read 889159101, expect 3780. 8ms 5.125 MiB
#7 Wrong Answer Read 13042337, expect 1555. 8ms 5.125 MiB
#8 Wrong Answer Read 181105455, expect 14643. 12ms 5.5 MiB
#9 Wrong Answer Read 60797277, expect 23818. 16ms 5.75 MiB
#10 Wrong Answer Read 340159559, expect 4644. 8ms 5.125 MiB

信息

递交者
类型
递交
题目
P1296 中产阶级
题目数据
下载
语言
C++
递交时间
2022-07-13 20:35:33
评测时间
2022-07-13 20:35:33
评测机
分数
0
总耗时
126ms
峰值内存
5.75 MiB