记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:26:28: error: conflicting types for 'a'
  int n,a[100000],b[100000],a,b=0,i,c,j;
                            ^
/in/foo.c:26:8: note: previous declaration of 'a' was here
  int n,a[100000],b[100000],a,b=0,i,c,j;
        ^
/in/foo.c:26:30: error: conflicting types for 'b'
  int n,a[100000],b[100000],a,b=0,i,c,j;
                              ^
/in/foo.c:26:18: note: previous declaration of 'b' was here
  int n,a[100000],b[100000],a,b=0,i,c,j;
                  ^
/in/foo.c:30:20: error: subscripted value is neither array nor pointer nor vector
   scanf("%d%d\n",&a[i],b[i]);
                    ^
/in/foo.c:30:25: error: subscripted value is neither array nor pointer nor vector
   scanf("%d%d\n",&a[i],b[i]);
                         ^
/in/foo.c:33:5: error: subscripted value is neither array nor pointer nor vector
    a[i]=min(a[i],a[i-1]);
     ^
/in/foo.c:33:14: error: subscripted value is neither array nor pointer nor vector
    a[i]=min(a[i],a[i-1]);
              ^
/in/foo.c:33:19: error: subscripted value is neither array nor pointer nor vector
    a[i]=min(a[i],a[i-1]);
                   ^
/in/foo.c:35:6: error: subscripted value is neither array nor pointer nor vector
   a=a[i-1];
      ^
/in/foo.c:37:8: error: subscripted value is neither array nor pointer nor vector
    b+=b[j]*a/a[j];
        ^
/in/foo.c:37:15: error: subscripted value is neither array nor pointer nor vector
    b+=b[j]*a/a[j];
               ^

信息

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