记录详情

Compile Error

foo.c: In function 'main':
foo.c:8:39: warning: unused variable 'c' [-Wunused-variable]
  int a[100000]={1}, n=1,b[100000]={1},c[100000]={1}, m=1,k,o,p,q;   
                                       ^
foo.c: In function 'Add':
foo.c:45:12: warning: operation on 'i' may be undefined [-Wsequence-point]
  c[i++]=a[i++];
           ~^~
foo.c:20:10: warning: unused variable 'j' [-Wunused-variable]
  int i=0,j,jw=0,c[100000];
          ^
foo.c: In function 'Mul2':
foo.c:63:11: error: 'n' undeclared (first use in this function)
   Add(c,b,n,m);
           ^
foo.c:63:11: note: each undeclared identifier is reported only once for each function it appears in
foo.c:63:13: error: 'm' undeclared (first use in this function)
   Add(c,b,n,m);
             ^
foo.c:63:7: warning: passing argument 1 of 'Add' from incompatible pointer type [-Wincompatible-pointer-types]
   Add(c,b,n,m);
       ^
foo.c:18:6: note: expected 'int *' but argument is of type 'int (*)[100000]'
 void Add(int a[],int b[],int lena,int lenb)
      ^~~
foo.c: In function 'main':
foo.c:9:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d%d",&k,&o);
  ^~~~~~~~~~~~~~~~~~~
foo.c:10:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d%d",&q,&p);
  ^~~~~~~~~~~~~~~~~~~
foo.c: In function 'Mul2':
foo.c:65:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
A11-4 高精度整数之间的乘法
比赛
2021(四) 作业第三场:热身赛
语言
C
递交时间
2021-11-15 19:45:46
评测时间
2021-11-15 19:45:46
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes