/ 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 14ms 12.477 MiB
#2 Accepted 14ms 12.523 MiB
#3 Accepted 14ms 12.398 MiB
#4 Accepted 14ms 12.492 MiB
#5 Accepted 204ms 191.738 MiB
#6 Accepted 202ms 191.645 MiB
#7 Accepted 201ms 191.707 MiB
#8 Accepted 198ms 191.625 MiB
#9 Accepted 521ms 192.707 MiB
#10 Accepted 517ms 192.738 MiB
#11 Accepted 192ms 189.828 MiB
#12 Accepted 193ms 189.793 MiB
#13 Accepted 202ms 189.766 MiB
#14 Accepted 189ms 189.328 MiB
#15 Accepted 186ms 189.316 MiB
#16 Accepted 692ms 190.277 MiB
#17 Accepted 693ms 190.176 MiB
#18 Accepted 660ms 190.344 MiB
#19 Accepted 688ms 190.246 MiB
#20 Accepted 697ms 190.281 MiB

信息

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