catinatree.cpp: In lambda function:
catinatree.cpp:44:5: error: there are no arguments to 'debug' that depend on a template parameter, so a declaration of 'debug' must be available [-fpermissive]
44 | debug(u, dp);
| ^~~~~
catinatree.cpp:44:5: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
catinatree.cpp: In instantiation of 'main()::<lambda(auto:54&&, int)> [with auto:54 = main()::<lambda(auto:54&&, int)>&]':
catinatree.cpp:48:22: required from here
catinatree.cpp:44:10: error: 'debug' was not declared in this scope
44 | debug(u, dp);
| ~~~~~^~~~~~~