QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#350405 | #7933. Build Permutation | MaMengQi | Compile Error | / | / | C99 | 1.3kb | 2024-03-10 18:13:32 | 2024-03-10 18:13:32 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
详细
answer.code: In function ‘solve’: answer.code:45:20: warning: function returns address of local variable [-Wreturn-local-addr] 45 | return c; | ^ answer.code: In function ‘main’: answer.code:59:7: error: assignment to expression with array type 59 | b = solve(n,a); | ^ answer.code:65:22: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘int *’ [-Wformat=] 65 | printf("%d ", &b[i]); | ~^ ~~~~~ | | | | int int * | %ls answer.code:54:5: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] 54 | scanf("%d", &n); | ^~~~~~~~~~~~~~~ answer.code:57:13: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] 57 | scanf("%d", &a[i]); | ^~~~~~~~~~~~~~~~~~