记录详情

Runtime Error

/in/foo.c: In function 'main':
/in/foo.c:14:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   if (a[i] > a[i + 1])
   ^~
/in/foo.c:15:14: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
    c = a[i]; a[i] = a[i + 1]; a[i + 1] = c;
              ^
/in/foo.c:4:15: warning: 'b' may be used uninitialized in this function [-Wmaybe-uninitialized]
  int n, i=0,c,b;
               ^
/in/foo.c:16:5: warning: 'c' may be used uninitialized in this function [-Wmaybe-uninitialized]
   b = a[i + 1] % a[i];
   ~~^~~~~~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Runtime Error 1ms 312.0 KiB
#2 Runtime Error 1ms 316.0 KiB
#3 Runtime Error 1ms 320.0 KiB
#4 Runtime Error 1ms 316.0 KiB
#5 Runtime Error 1ms 360.0 KiB

信息

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