QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#841154 | #8857. Low Power | ZhaoZiLong | Compile Error | / | / | C++14 | 971b | 2025-01-03 14:30:41 | 2025-01-03 14:30:42 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
详细
answer.code: In function ‘bool check(const VI&, int)’: answer.code:6:39: warning: no return statement in function returning non-void [-Wreturn-type] 6 | bool check(const VI& P, const int d) {} | ^ answer.code: In function ‘int main()’: answer.code:29:11: error: no match for call to ‘(main()::<lambda(int)>) (std::vector<int>&, int&)’ 29 | (check(P, d = (l + r) / 2)) ? (r = d - 1, ans = d) : (l = d + 1); | ~~~~~^~~~~~~~~~~~~~~~~~~~ answer.code:14:16: note: candidate: ‘main()::<lambda(int)>’ 14 | auto check = [&](int d) { | ^ answer.code:14:16: note: candidate expects 1 argument, 2 provided