Wrong Answer

foo.c: In function 'main':
foo.c:8:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d %d",&n,&h);
  ^~~~~~~~~~~~~~~~~~~~
foo.c:10:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d %d",&hight,&weight);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.c:9:18: warning: 'i' may be used uninitialized in this function [-Wmaybe-uninitialized]
  for(int i ;i<n;i++){
                 ~^~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 0ms 256.0 KiB
#2 Wrong Answer Read 1813, expect 2353. 0ms 256.0 KiB
#3 Wrong Answer Read 4589, expect 5084. 0ms 256.0 KiB

信息

递交者
类型
递交
题目
P1002 摘葡萄
语言
C
递交时间
2021-09-30 19:21:23
评测时间
2021-09-30 19:21:23
评测机
分数
30
总耗时
2ms
峰值内存
256.0 KiB