QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#510722 | #5207. Interactive Factorial Guessing | ZhangYiDe | Compile Error | / | / | C++17 | 2.9kb | 2024-08-09 11:35:43 | 2024-08-09 11:35:44 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
详细
answer.code: In function ‘void Solve()’: answer.code:71:22: error: ‘sort’ is not a member of ‘std’; did you mean ‘sqrt’? 71 | std::sort(action.begin(), action.end()); | ^~~~ | sqrt answer.code: In lambda function: answer.code:83:40: error: ‘upper_bound’ is not a member of ‘std’; did you mean ‘lower_bound’? 83 | auto it = std::upper_bound(action.begin(), action.end(), std::pair<int, int>{best_position, 999999}); | ^~~~~~~~~~~ | lower_bound answer.code: In function ‘int ask(int)’: answer.code:57:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 57 | scanf("%d", &r); | ~~~~~^~~~~~~~~~ answer.code: In function ‘void Solve()’: answer.code:106:30: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 106 | scanf("%s", response.data()); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~ answer.code: In function ‘int main()’: answer.code:118:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 118 | scanf("%d", &T); | ~~~~~^~~~~~~~~~