/in/foo.cc: In function 'int main()':
/in/foo.cc:32:5: error: 'function' was not declared in this scope
32 | function<bool(int)> dfs = [&](int u)->bool{
| ^~~~~~~~
/in/foo.cc:5:1: note: 'std::function' is defined in header '<functional>'; did you forget to '#include <functional>'?
4 | #include <cstring>
+++ |+#include <functional>
5 | using namespace std;
/in/foo.cc:32:14: error: expected primary-expression before 'bool'
32 | function<bool(int)> dfs = [&](int u)->bool{
| ^~~~
/in/foo.cc:44:46: error: 'dfs' was not declared in this scope; did you mean 'bfs'?
44 | for(int i=0;i<M;i++) if(ml[i]==-1 && dfs(i)) match++;
| ^~~
| bfs