QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#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.
Details
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); | ^~~