/ Vijos /

记录详情

Accepted

foo.cc: In function 'int main()':
foo.cc:22:40: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   22 |     for(int i=2;i<=n;i++){ int u; scanf("%d", &u); rson[i]=lson[u]; lson[u]=i; }
      |                                   ~~~~~^~~~~~~~~~
foo.cc:23:32: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   23 |     for(int i=1;i<=n;i++) scanf("%d", &c[i]);
      |                           ~~~~~^~~~~~~~~~~~~
foo.cc:24:32: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   24 |     for(int i=1;i<=n;i++) scanf("%d", &e[i]);
      |                           ~~~~~^~~~~~~~~~~~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 896.0 KiB
#2 Accepted 6ms 768.0 KiB
#3 Accepted 7ms 768.0 KiB
#4 Accepted 4ms 896.0 KiB
#5 Accepted 10ms 896.0 KiB
#6 Accepted 29ms 888.0 KiB
#7 Accepted 63ms 896.0 KiB
#8 Accepted 37ms 768.0 KiB
#9 Accepted 39ms 896.0 KiB
#10 Accepted 37ms 768.0 KiB

信息

递交者
类型
递交
题目
P1418 公司聚会
语言
C++
递交时间
2021-12-16 19:33:44
评测时间
2021-12-16 19:33:45
评测机
分数
100
总耗时
240ms
峰值内存
896.0 KiB