QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#491973 | #5665. AA Country and King Dreamoon | ucup-team4204 | Compile Error | / | / | C++20 | 4.6kb | 2024-07-26 03:13:09 | 2024-07-26 03:13:09 |
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:91:9: error: ‘assert’ was not declared in this scope 91 | assert(way.empty()); | ^~~~~~ answer.code:4:1: note: ‘assert’ is defined in header ‘<cassert>’; did you forget to ‘#include <cassert>’? 3 | #include <algorithm> +++ |+#include <cassert> 4 | using namespace std; answer.code:113:9: error: ‘function’ was not declared in this scope 113 | function<void(int, int)> solve = [&](int vertex, int p) | ^~~~~~~~ answer.code:4:1: note: ‘std::function’ is defined in header ‘<functional>’; did you forget to ‘#include <functional>’? 3 | #include <algorithm> +++ |+#include <functional> 4 | using namespace std; answer.code:113:31: error: expression list treated as compound expression in functional cast [-fpermissive] 113 | function<void(int, int)> solve = [&](int vertex, int p) | ^ answer.code:113:18: error: expected primary-expression before ‘void’ 113 | function<void(int, int)> solve = [&](int vertex, int p) | ^~~~ answer.code:151:9: error: ‘solve’ was not declared in this scope 151 | solve(way[0], -1); | ^~~~~