/ Vijos /

记录详情

Accepted

foo.cc: In function 'int main()':
foo.cc:7:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d",&n);  
     ~~~~~^~~~~~~~~
foo.cc:8:44: 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",&w[i]),sum+=w[i];  
                           ~~~~~~~~~~~~~~~~~^~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 1.402 MiB
#2 Accepted 2ms 1.402 MiB
#3 Accepted 3ms 1.441 MiB
#4 Accepted 9ms 1.453 MiB
#5 Accepted 3ms 1.375 MiB
#6 Accepted 12ms 1.461 MiB
#7 Accepted 17ms 1.496 MiB
#8 Accepted 24ms 1.492 MiB
#9 Accepted 26ms 1.504 MiB
#10 Accepted 32ms 1.492 MiB

信息

递交者
类型
递交
题目
P1037 搭建双塔
语言
C++
递交时间
2021-10-17 20:41:51
评测时间
2021-10-17 20:41:51
评测机
分数
100
总耗时
135ms
峰值内存
1.504 MiB