记录详情

Runtime Error

foo.c: In function 'main':
foo.c:22:18: warning: unused variable 'count' [-Wunused-variable]
   22 |  int n,i,e,f=0,c,count=0;
      |                  ^~~~~
foo.c:24:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
   24 |  scanf("%d",&n);
      |  ^~~~~~~~~~~~~~
foo.c:26:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
   26 |   scanf("%d%d",&a[i],&b[i]);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~
foo.c:36:3: warning: 'e' may be used uninitialized in this function [-Wmaybe-uninitialized]
   36 |  e=e/c;
      |  ~^~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Runtime Error Floating point exception 2ms 256.0 KiB
#2 Wrong Answer Read 140, expect 77. 2ms 256.0 KiB
#3 Runtime Error Floating point exception 3ms 256.0 KiB
#4 Wrong Answer Read 20, expect 29. 2ms 256.0 KiB
#5 Wrong Answer Read 27, expect 223. 2ms 256.0 KiB

信息

递交者
类型
递交
题目
A6-3 最大公约数专题:多个分数的加法
比赛
中北 计算机2021级专业修读指导(3)
语言
C
递交时间
2021-12-16 23:49:09
评测时间
2021-12-16 23:49:09
评测机
分数
0
总耗时
14ms
峰值内存
256.0 KiB