记录详情

Compile Error

foo.c: In function 'Mul':
foo.c:33:9: warning: 'return' with a value, in function returning void
  return 1;
         ^
foo.c:3:6: note: declared here
 void Mul(char number1[],char number2[])
      ^~~
foo.c: In function 'main':
foo.c:40:17: warning: implicit declaration of function 'iota' [-Wimplicit-function-declaration]
  char m1[10000]=iota(pow(x1,n1));
                 ^~~~
foo.c:40:22: warning: implicit declaration of function 'pow' [-Wimplicit-function-declaration]
  char m1[10000]=iota(pow(x1,n1));
                      ^~~
foo.c:40:22: warning: incompatible implicit declaration of built-in function 'pow'
foo.c:40:22: note: include '<math.h>' or provide a declaration of 'pow'
foo.c:40:17: error: invalid initializer
  char m1[10000]=iota(pow(x1,n1));
                 ^~~~
foo.c:41:17: error: invalid initializer
  char m2[10000]=iota(pow(x2,n2));
                 ^~~~
foo.c:42:6: warning: passing argument 1 of 'Mul' makes pointer from integer without a cast [-Wint-conversion]
  Mul(m1[10000],m2[10000]);
      ^~
foo.c:3:6: note: expected 'char *' but argument is of type 'char'
 void Mul(char number1[],char number2[])
      ^~~
foo.c:42:16: warning: passing argument 2 of 'Mul' makes pointer from integer without a cast [-Wint-conversion]
  Mul(m1[10000],m2[10000]);
                ^~
foo.c:3:6: note: expected 'char *' but argument is of type 'char'
 void Mul(char number1[],char number2[])
      ^~~
foo.c:39:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d%d%d%d",&x1,&n1,&x2,&n2);
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

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