/ Vijos /

记录详情

Accepted

foo.cc: In function 'void dts::tr_dfs1(int, int)':
foo.cc:28:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   28 |         for (int i=0;i<tr[now].s.size();i++)
      |                      ~^~~~~~~~~~~~~~~~~
foo.cc: In function 'void dts::tr_dfs2(int, int)':
foo.cc:48:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   48 |             for (int i=0;i<tr[now].s.size();i++)
      |                          ~^~~~~~~~~~~~~~~~~
foo.cc: In function 'void dts::main()':
foo.cc:208:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  208 |         scanf("%d",&n);
      |         ~~~~~^~~~~~~~~
foo.cc:210:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  210 |             scanf("%d",&data[i]);
      |             ~~~~~^~~~~~~~~~~~~~~
foo.cc:216:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  216 |             scanf("%d%d",&x,&y);
      |             ~~~~~^~~~~~~~~~~~~~
foo.cc:223:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  223 |         scanf("%d",&m);
      |         ~~~~~^~~~~~~~~
foo.cc:227:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  227 |             scanf("%d%d%d",&K,&x,&y);
      |             ~~~~~^~~~~~~~~~~~~~~~~~~
foo.cc:233:22: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  233 |                 scanf("%d",&val);
      |                 ~~~~~^~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 49ms 26.367 MiB
#2 Accepted 46ms 26.367 MiB
#3 Accepted 29ms 26.375 MiB
#4 Accepted 201ms 30.367 MiB
#5 Accepted 199ms 30.367 MiB
#6 Accepted 235ms 30.414 MiB
#7 Accepted 243ms 30.367 MiB
#8 Accepted 623ms 34.492 MiB
#9 Accepted 455ms 34.371 MiB
#10 Accepted 701ms 34.367 MiB

信息

递交者
类型
递交
题目
P1620 小白逛公园加强版
语言
C++
递交时间
2022-04-11 14:44:02
评测时间
2022-04-11 14:44:02
评测机
分数
100
总耗时
2785ms
峰值内存
34.492 MiB