QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#350411 | #7933. Build Permutation | MaMengQi | Compile Error | / | / | C99 | 1.2kb | 2024-03-10 18:17:01 | 2024-03-10 18:17:02 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code: In function ‘solve’: answer.code:45:13: warning: ‘return’ with no value, in function returning non-void 45 | return; | ^~~~~~ answer.code:3:10: note: declared here 3 | int* solve(int length, int* array) | ^~~~~ answer.code: In function ‘main’: answer.code:59:7: error: expected expression before ‘]’ token 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:9: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] 57 | scanf("%d", &a[i]); | ^~~~~~~~~~~~~~~~~~