QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#350350 | #7933. Build Permutation | ZhaoZiLong | Compile Error | / | / | C99 | 933b | 2024-03-10 17:37:13 | 2024-03-10 17:37:14 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
详细
answer.code: In function ‘solve’: answer.code:3:21: warning: implicit declaration of function ‘malloc’ [-Wimplicit-function-declaration] 3 | int* re = (int*)malloc(sizeof(int)*length); | ^~~~~~ answer.code:3:21: warning: incompatible implicit declaration of built-in function ‘malloc’ answer.code:1:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’ +++ |+#include <stdlib.h> 1 | int* solve(int length, int* array) answer.code:41:20: warning: returning ‘int’ from a function with return type ‘int *’ makes pointer from integer without a cast [-Wint-conversion] 41 | return -1; | ^ /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/Scrt1.o: in function `_start': (.text+0x24): undefined reference to `main' collect2: error: ld returned 1 exit status