记录详情

Runtime Error

foo.c: In function 'main':
foo.c:11:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   11 |  if(j<i)
      |  ^~
foo.c:12:7: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   12 |   r=j;j=i;i=r;
      |       ^
foo.c:5:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
    5 |  scanf("%d%d\n",&b1,&a1);
      |  ^~~~~~~~~~~~~~~~~~~~~~~
foo.c:6:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
    6 |  scanf("%d%d\n",&b2,&a2);
      |  ^~~~~~~~~~~~~~~~~~~~~~~
foo.c:4:22: warning: 'r' may be used uninitialized in this function [-Wmaybe-uninitialized]
    4 |  int a1,a2,b1,b2,m,n,r,j,i;
      |                      ^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Runtime Error Illegal instruction 3ms 384.0 KiB
#2 Wrong Answer Standard answer longer than user output. 2ms 256.0 KiB
#3 Wrong Answer Standard answer longer than user output. 1ms 256.0 KiB
#4 Wrong Answer Standard answer longer than user output. 3ms 256.0 KiB
#5 Wrong Answer Standard answer longer than user output. 2ms 256.0 KiB

信息

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