/ WHOJ /

记录详情

Accepted

foo.cc: In function 'int main()':
foo.cc:85:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   85 |     scanf("%d%d", &n, &m);
      |     ~~~~~^~~~~~~~~~~~~~~~
foo.cc:86:39: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   86 |     for (int i = 1; i <= n; ++i) scanf("%d", &a[i]);
      |                                  ~~~~~^~~~~~~~~~~~~
foo.cc:89:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   89 |         scanf("%d%d", &u, &v);
      |         ~~~~~^~~~~~~~~~~~~~~~
foo.cc:97:29: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   97 |         int opt, x, a; scanf("%d", &opt);
      |                        ~~~~~^~~~~~~~~~~~
foo.cc:99:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   99 |             scanf("%d%d", &x, &a);
      |             ~~~~~^~~~~~~~~~~~~~~~
foo.cc:103:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  103 |             scanf("%d%d", &x, &a);
      |             ~~~~~^~~~~~~~~~~~~~~~
foo.cc:106:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  106 |             scanf("%d", &x);
      |             ~~~~~^~~~~~~~~~
正在同步测试数据,请稍后
Found 10 testcases.
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 3ms 640.0 KiB
#2 Accepted 2ms 384.0 KiB
#3 Accepted 2ms 384.0 KiB
#4 Accepted 209ms 13.754 MiB
#5 Accepted 236ms 13.992 MiB
#6 Accepted 186ms 17.742 MiB
#7 Accepted 168ms 17.816 MiB
#8 Accepted 305ms 17.742 MiB
#9 Accepted 170ms 17.812 MiB
#10 Accepted 166ms 17.742 MiB

信息

递交者
类型
递交
题目
P1130 [HAOI2015]树上操作
题目数据
下载
语言
C++
递交时间
2022-04-23 20:32:18
评测时间
2022-04-23 22:00:04
评测机
分数
100
总耗时
1452ms
峰值内存
17.816 MiB