/ 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 3ms 768.0 KiB
#2 Accepted 3ms 768.0 KiB
#3 Accepted 3ms 768.0 KiB
#4 Accepted 4ms 896.0 KiB
#5 Accepted 11ms 768.0 KiB
#6 Accepted 35ms 768.0 KiB
#7 Accepted 36ms 900.0 KiB
#8 Accepted 40ms 896.0 KiB
#9 Accepted 52ms 888.0 KiB
#10 Accepted 43ms 1.0 MiB

信息

递交者
类型
递交
题目
P1418 公司聚会
语言
C++
递交时间
2022-04-15 09:12:17
评测时间
2022-04-15 09:12:17
评测机
分数
100
总耗时
235ms
峰值内存
1.0 MiB