worldmap.cpp: In function 'std::vector<std::vector<int> > create_map(int, int, std::vector<int>, std::vector<int>)':
worldmap.cpp:13:10: error: 'function' is not a member of 'std'
13 | std::function<void(int, int, int)> dfs = [&](int x, int y, int c) {
| ^~~~~~~~
worldmap.cpp:2:1: note: 'std::function' is defined in header '<functional>'; did you forget to '#include <functional>'?
1 | #include "worldmap.h"
+++ |+#include <functional>
2 | std::vector<std::vector<int>> create_map(int N, int M, std::vector<int> A, std::vector<int> B) {
worldmap.cpp:13:37: error: expression list treated as compound expression in functional cast [-fpermissive]
13 | std::function<void(int, int, int)> dfs = [&](int x, int y, int c) {
| ^
worldmap.cpp:13:19: error: expected primary-expression before 'void'
13 | std::function<void(int, int, int)> dfs = [&](int x, int y, int c) {
| ^~~~
worldmap.cpp:33:5: error: 'dfs' was not declared in this scope
33 | dfs(K / 2, K / 2, 1);
| ^~~