QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#860405 | #9678. 网友小 Z 的树 | skip2004 | Compile Error | / | / | C++20 | 326b | 2025-01-18 13:14:17 | 2025-01-18 13:15:12 |
Judging History
answer
#include "diameter.h"
#include <bits/stdc++.h>
int hacker = []() {
int x; for(;std::cin >> x;);
return 0;
};
std::pair<int, int> find_diameter(int subid, int n) {
if (in(1, 2, 3))
return std::make_pair(1, 2);
if (query(1, 2, 3) == 233)
return std::make_pair(1, 3);
return std::make_pair(2, 3);
}
详细
answer.code:4:14: error: invalid user-defined conversion from ‘<lambda()>’ to ‘int’ [-fpermissive] 4 | int hacker = []() { | ^~~~~~ 5 | int x; for(;std::cin >> x;); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 6 | return 0; | ~~~~~~~~~ 7 | }; | ~ answer.code:4:14: note: candidate is: ‘constexpr<lambda()>::operator int (*)()() const’ (near match) 4 | int hacker = []() { | ^ answer.code:4:14: note: no known conversion from ‘int (*)()’ to ‘int’