QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#249603 | #5471. Interactive Number Guessing | HuangHanSheng | Compile Error | / | / | C++17 | 646b | 2023-11-12 13:09:46 | 2023-11-12 13:09:47 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code: In function ‘int query(ll)’: answer.code:11:17: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘int’ [-Wformat=] 11 | scanf("%d", response); | ~^ ~~~~~~~~ | | | | | int | int* answer.code: In function ‘bool ok(ll)’: answer.code:16:21: error: ‘z’ was not declared in this scope 16 | return v <= z; | ^ answer.code: In function ‘int main()’: answer.code:20:9: error: ‘p’ was not declared in this scope 20 | p[0] = 1ll; | ^ answer.code: In function ‘int query(ll)’: answer.code:11:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 11 | scanf("%d", response); | ~~~~~^~~~~~~~~~~~~~~~