worldmap.cpp: In function 'std::vector<std::vector<int> > create_map(int, int, std::vector<int>, std::vector<int>)':
worldmap.cpp:18:5: error: 'function' was not declared in this scope
18 | function<void(int)> dfs = [&](int a){
| ^~~~~~~~
worldmap.cpp:4:1: note: 'std::function' is defined in header '<functional>'; did you forget to '#include <functional>'?
3 | #include <queue>
+++ |+#include <functional>
4 | using namespace std;
worldmap.cpp:18:14: error: expected primary-expression before 'void'
18 | function<void(int)> dfs = [&](int a){
| ^~~~
worldmap.cpp:33:5: error: 'dfs' was not declared in this scope
33 | dfs(1);
| ^~~