/ WHOJ /

记录详情

Accepted

foo.cc: In function 'void dfs1(int, int)':
foo.cc:37:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   37 |      for(ri i=0;i<p[r].size();i++)
      |                 ~^~~~~~~~~~~~
foo.cc: In function 'void dfs2(int, int)':
foo.cc:63:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   63 |     for(ri i=0;i<p[r].size();i++)
      |                ~^~~~~~~~~~~~
foo.cc: In function 'void read()':
foo.cc:13:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   13 |     scanf("%d%d%d%lld",&n,&m,&R,&P);
      |     ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:16:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   16 |         scanf("%lld",&val[i]);
      |         ~~~~~^~~~~~~~~~~~~~~~
foo.cc:21:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   21 |         scanf("%d%d",&a,&b);
      |         ~~~~~^~~~~~~~~~~~~~
foo.cc: In function 'void solve()':
foo.cc:172:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  172 |         scanf("%d",&a);
      |         ~~~~~^~~~~~~~~
foo.cc:176:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  176 |             scanf("%d%d%d",&x,&y,&z);
      |             ~~~~~^~~~~~~~~~~~~~~~~~~
foo.cc:182:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  182 |             scanf("%d%d",&x,&y);
      |             ~~~~~^~~~~~~~~~~~~~
foo.cc:191:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  191 |             scanf("%d%d",&x,&z);
      |             ~~~~~^~~~~~~~~~~~~~
foo.cc:197:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  197 |             scanf("%d",&x);
      |             ~~~~~^~~~~~~~~
正在同步测试数据,请稍后
Found 3 testcases.
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 7ms 3.125 MiB
#2 Accepted 867ms 18.617 MiB
#3 Accepted 10ms 3.125 MiB

信息

递交者
类型
递交
题目
P1123 【模板】轻重链剖分 / 树链剖分
题目数据
下载
语言
C++
递交时间
2022-04-09 18:54:37
评测时间
2022-04-09 18:54:37
评测机
分数
100
总耗时
884ms
峰值内存
18.617 MiB