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

Compile Error

wonhee.cpp: In function ‘int main()’:
wonhee.cpp:34:9: error: ‘function’ was not declared in this scope
34 | function<void(int, int, bool&)> dfs =
| ^~~~~~~~
wonhee.cpp:3:1: note: ‘std::function’ is defined in header ‘<functional>’; did you forget to ‘#include <functional>’?
2 | #include <vector>
+++ |+#include <functional>
3 |
wonhee.cpp:34:38: error: expression list treated as compound expression in functional cast [-fpermissive]
34 | function<void(int, int, bool&)> dfs =
| ^
wonhee.cpp:34:18: error: expected primary-expression before ‘void’
34 | function<void(int, int, bool&)> dfs =
| ^~~~
wonhee.cpp:70:21: error: ‘dfs’ was not declared in this scope
70 | dfs(i, j, can_exit);
| ^~~