记录详情

Wrong Answer

/in/foo.c: In function 'main':
/in/foo.c:5:14: warning: missing braces around initializer [-Wmissing-braces]
  int m[2][2]={b1,a1,b2,a2};
              ^
/in/foo.c:5:14: note: (near initialization for 'm')
/in/foo.c:6:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for(i=0;i<2;i++)
  ^~~
/in/foo.c:10:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
   n/r==b1/a1+b2/a2;
   ^
/in/foo.c:10:6: warning: statement with no effect [-Wunused-value]
   n/r==b1/a1+b2/a2;
   ~~~^~~~~~~~~~~~~
/in/foo.c:11:15: warning: format '%d' expects a matching 'int' argument [-Wformat=]
   printf("%d/%d\n",n/r);
               ^
/in/foo.c:5:6: warning: 'b1' is used uninitialized in this function [-Wuninitialized]
  int m[2][2]={b1,a1,b2,a2};
      ^
/in/foo.c:5:6: warning: 'a1' is used uninitialized in this function [-Wuninitialized]
/in/foo.c:5:6: warning: 'b2' is used uninitialized in this function [-Wuninitialized]
/in/foo.c:5:6: warning: 'a2' is used uninitialized in this function [-Wuninitialized]
/in/foo.c:10:4: warning: 'n' is used uninitialized in this function [-Wuninitialized]
   n/r==b1/a1+b2/a2;
   ~^~
/in/foo.c:10:4: warning: 'r' is used uninitialized in this function [-Wuninitialized]
# 状态 耗时 内存占用
#1 Wrong Answer 1ms 232.0 KiB
#2 Wrong Answer 1ms 216.0 KiB
#3 Wrong Answer 1ms 212.0 KiB
#4 Wrong Answer 1ms 252.0 KiB
#5 Wrong Answer 1ms 248.0 KiB

信息

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