记录详情

Runtime Error

/in/foo.c: In function 'qiu2':
/in/foo.c:30:20: warning: variable 'min' set but not used [-Wunused-but-set-variable]
  int big,small,max,min,z;
                    ^~~
/in/foo.c: In function 'main':
/in/foo.c:71:4: warning: operation on 'b3' may be undefined [-Wsequence-point]
  b3=b3/=max;
  ~~^~~~~~~~
/in/foo.c: In function 'qiu1':
/in/foo.c:25:5: warning: 'z' may be used uninitialized in this function [-Wmaybe-uninitialized]
  min=x*y/max;
  ~~~^~~~~~~~
/in/foo.c: In function 'qiu2':
/in/foo.c:50:9: warning: 'z' may be used uninitialized in this function [-Wmaybe-uninitialized]
  return max;
         ^~~
/in/foo.c: In function 'main':
/in/foo.c:70:4: warning: 'z' may be used uninitialized in this function [-Wmaybe-uninitialized]
  a3=a3/max;
  ~~^~~~~~~
/in/foo.c:25:5: warning: 'z' may be used uninitialized in this function [-Wmaybe-uninitialized]
  min=x*y/max;
  ~~~^~~~~~~~
/in/foo.c:6:24: note: 'z' was declared here
  int big,small,max,min,z;
                        ^
# 状态 耗时 内存占用
#1 Wrong Answer 1ms 260.0 KiB
#2 Runtime Error 1ms 320.0 KiB
#3 Runtime Error 1ms 376.0 KiB
#4 Wrong Answer 1ms 276.0 KiB
#5 Wrong Answer 1ms 236.0 KiB

信息

递交者
类型
递交
题目
A6-2 最大公约数专题:分数的加法
比赛
2023 程序设计与竞赛(作业3:中秋和国庆)
语言
C
递交时间
2023-10-01 13:54:43
评测时间
2023-10-01 13:54:43
评测机
分数
0
总耗时
6ms
峰值内存
376.0 KiB