/ Vijos /

记录详情

Accepted

foo.cc: In function 'int main()':
foo.cc:112:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d%d",&n,&m);
   ~~~~~^~~~~~~~~~~~~~
foo.cc:114:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d",&x);
     ~~~~~^~~~~~~~~
foo.cc:119:47: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   for(i=1;i<n;i++)scanf("%d%d",&x,&y),add(x,y),add(y,x);
                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
foo.cc:123:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d",&Q);
   ~~~~~^~~~~~~~~
foo.cc:125:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%s%d",op,&x);
     ~~~~~^~~~~~~~~~~~~~
foo.cc:127:12: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
       scanf("%d",&y);
       ~~~~~^~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 15ms 12.457 MiB
#2 Accepted 16ms 12.512 MiB
#3 Accepted 16ms 12.449 MiB
#4 Accepted 15ms 12.477 MiB
#5 Accepted 218ms 192.328 MiB
#6 Accepted 219ms 192.363 MiB
#7 Accepted 217ms 192.336 MiB
#8 Accepted 213ms 192.367 MiB
#9 Accepted 568ms 193.457 MiB
#10 Accepted 563ms 193.488 MiB
#11 Accepted 210ms 190.43 MiB
#12 Accepted 207ms 190.441 MiB
#13 Accepted 207ms 190.43 MiB
#14 Accepted 196ms 189.965 MiB
#15 Accepted 198ms 189.969 MiB
#16 Accepted 757ms 190.914 MiB
#17 Accepted 761ms 190.91 MiB
#18 Accepted 745ms 190.965 MiB
#19 Accepted 746ms 190.965 MiB
#20 Accepted 939ms 191.023 MiB

信息

递交者
类型
递交
题目
P2021 切树游戏
语言
C++
递交时间
2021-08-12 19:08:47
评测时间
2021-08-12 19:12:08
评测机
分数
100
总耗时
7035ms
峰值内存
193.488 MiB