/ MYOJ /

记录详情

Compile Error

/in/foo.c: In function 'divide':
/in/foo.c:99:25: warning: implicit declaration of function 'multiply' [-Wimplicit-function-declaration]
         char* product = multiply(alignedDivisor, temp);
                         ^~~~~~~~
/in/foo.c:99:25: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
/in/foo.c:113:42: warning: passing argument 2 of 'subtract' makes pointer from integer without a cast [-Wint-conversion]
     char* remainder = subtract(dividend, multiply(quotient, divisor));
                                          ^~~~~~~~
/in/foo.c:20:7: note: expected 'char *' but argument is of type 'int'
 char* subtract(char* num1, char* num2) {
       ^~~~~~~~
/tmp/ccngattW.o: In function `divide':
foo.c:(.text+0x237): undefined reference to `multiply'
foo.c:(.text+0x27c): undefined reference to `multiply'
collect2: error: ld returned 1 exit status

信息

递交者
类型
递交
题目
P1023 [7FOJ]高精度除法
语言
C
递交时间
2023-09-22 22:44:47
评测时间
2023-09-22 22:44:47
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes