jail.cpp: In lambda function:
jail.cpp:68:22: error: 'LCA' is not captured
68 | int p1 = LCA(s1, t1), p2 = LCA(s2, t2);
| ^~~
jail.cpp:67:21: note: the lambda has no capture-default
67 | auto chk = [](int s1, int t1, int s2, int t2) -> bool {
| ^
jail.cpp:42:14: note: 'main()::<lambda(int, int)> LCA' declared here
42 | auto LCA = [](int u, int v) -> int {
| ^~~
jail.cpp:69:17: error: 'path' is not captured
69 | if(!path(s1, p1, s2) || !path(t1, p1, s2)) return false;
| ^~~~
jail.cpp:67:21: note: the lambda has no capture-default
67 | auto chk = [](int s1, int t1, int s2, int t2) -> bool {
| ^
jail.cpp:59:14: note: 'main()::<lambda(int, int, int)> path' declared here
59 | auto path = [](int s, int t, int n) -> bool {
| ^~~~
jail.cpp:69:38: error: 'path' is not captured
69 | if(!path(s1, p1, s2) || !path(t1, p1, s2)) return false;
| ^~~~
jail.cpp:67:21: note: the lambda has no capture-default
67 | auto chk = [](int s1, int t1, int s2, int t2) -> bool {
| ^
jail.cpp:59:14: note: 'main()::<lambda(int, int, int)> path' declared here
59 | auto path = [](int s, int t, int n) -> bool {
| ^~~~
jail.cpp:70:17: error: 'path' is not captured
70 | if(!path(s2, p2, t1) || !path(t2, p2, t1)) return false;
| ^~~~
jail.cpp:67:21: note: the lambda has no capture-default
67 | auto chk = [](int s1, int t1, int s2, int t2) -> bool {
| ^
jail.cpp:59:14: note: 'main()::<lambda(int, int, int)> path' declared here
59 | auto path = [](int s, int t, int n) -> bool {
| ^~~~
jail.cpp:70:26: error: 'p2' was not declared in this scope; did you mean 'p1'?
70 | if(!path(s2, p2, t1) || !path(t2, p2, t1)) return false;
| ^~
| p1
jail.cpp:70:38: error: 'path' is not captured
70 | if(!path(s2, p2, t1) || !path(t2, p2, t1)) return false;
| ^~~~
jail.cpp:67:21: note: the lambda has no capture-default
67 | auto chk = [](int s1, int t1, int s2, int t2) -> bool {
| ^
jail.cpp:59:14: note: 'main()::<lambda(int, int, int)> path' declared here
59 | auto path = [](int s, int t, int n) -> bool {
| ^~~~