Problem wonhee
User jerrielchangjiebin
Submission Time 2024-12-28 10:45:37
Score 0
Max Time N/A
Max Memory N/A

Compile Error

wonhee.cpp: In lambda function:
wonhee.cpp:23:17: error: ‘function’ was not declared in this scope
23 | function<void(int, int)> dfs =
| ^~~~~~~~
wonhee.cpp:4:1: note: ‘std::function’ is defined in header ‘<functional>’; did you forget to ‘#include <functional>’?
3 | #include <queue>
+++ |+#include <functional>
4 |
wonhee.cpp:23:39: error: expression list treated as compound expression in functional cast [-fpermissive]
23 | function<void(int, int)> dfs =
| ^
wonhee.cpp:23:26: error: expected primary-expression before ‘void’
23 | function<void(int, int)> dfs =
| ^~~~
wonhee.cpp:42:26: error: expected primary-expression before ‘void’
42 | function<void(int)> solve_remaining =
| ^~~~