/ 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]
     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]
     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]
     for(int i=1;i<=n;i++) scanf("%d", &e[i]);
                           ~~~~~^~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 768.0 KiB
#2 Accepted 2ms 864.0 KiB
#3 Accepted 3ms 892.0 KiB
#4 Accepted 4ms 904.0 KiB
#5 Accepted 12ms 896.0 KiB
#6 Accepted 33ms 912.0 KiB
#7 Accepted 36ms 924.0 KiB
#8 Accepted 41ms 920.0 KiB
#9 Accepted 43ms 920.0 KiB
#10 Accepted 41ms 920.0 KiB

信息

递交者
类型
递交
题目
P1418 公司聚会
语言
C++
递交时间
2021-08-10 21:54:43
评测时间
2021-08-10 21:54:43
评测机
分数
100
总耗时
221ms
峰值内存
924.0 KiB