QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#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.
詳細信息
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); | ~~~~~^~~~~~~~~~~~~~~~