QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#268846 | #6742. Leaves | ucup-team2499# | Compile Error | / | / | C++20 | 3.2kb | 2023-11-28 22:12:40 | 2023-11-28 22:12:40 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
详细
answer.code: In function ‘int main()’: answer.code:80:10: error: ‘function’ is not a member of ‘std’ 80 | std::function<void(int)> dfs = [&](int node) { | ^~~~~~~~ answer.code:3:1: note: ‘std::function’ is defined in header ‘<functional>’; did you forget to ‘#include <functional>’? 2 | #include <vector> +++ |+#include <functional> 3 | answer.code:80:19: error: expected primary-expression before ‘void’ 80 | std::function<void(int)> dfs = [&](int node) { | ^~~~ answer.code:115:5: error: ‘dfs’ was not declared in this scope 115 | dfs(0); | ^~~