aliens.cpp: In function 'int examine(ll, ll)':
aliens.cpp:49:22: error: 'n' was not declared in this scope
49 | if (x < 1 || x > n || y < 1 || y > n) return 0;
| ^
aliens.cpp: In lambda function:
aliens.cpp:83:55: error: 'x1' is not captured
83 | xR = binary_lift_descent([](int x){return examine(x1 + x, y1);});
| ^~
aliens.cpp:83:31: note: the lambda has no capture-default
83 | xR = binary_lift_descent([](int x){return examine(x1 + x, y1);});
| ^
aliens.cpp:79:11: note: 'll x1' declared here
79 | ll n, x1, y1;
| ^~
aliens.cpp:83:63: error: 'y1' is not captured
83 | xR = binary_lift_descent([](int x){return examine(x1 + x, y1);});
| ^~
aliens.cpp:83:31: note: the lambda has no capture-default
83 | xR = binary_lift_descent([](int x){return examine(x1 + x, y1);});
| ^
aliens.cpp:79:15: note: 'll y1' declared here
79 | ll n, x1, y1;
| ^~
aliens.cpp: In function 'int main()':
aliens.cpp:83:68: error: could not convert '<lambda closure object>main()::<lambda(int)>{}' from 'main()::<lambda(int)>' to 'std::function<int(int)>'
83 | xR = binary_lift_descent([](int x){return examine(x1 + x, y1);});
| ^
| |
| main()::<lambda(int)>
aliens.cpp: In lambda function:
aliens.cpp:84:55: error: 'x1' is not captured
84 | xL = binary_lift_descent([](int x){return examine(x1 - x, y1);});
| ^~
aliens.cpp:84:31: note: the lambda has no capture-default
84 | xL = binary_lift_descent([](int x){return examine(x1 - x, y1);});
| ^
aliens.cpp:79:11: note: 'll x1' declared here
79 | ll n, x1, y1;
| ^~
aliens.cpp:84:63: error: 'y1' is not captured
84 | xL = binary_lift_descent([](int x){return examine(x1 - x, y1);});
| ^~
aliens.cpp:84:31: note: the lambda has no capture-default
84 | xL = binary_lift_descent([](int x){return examine(x1 - x, y1);});
| ^
aliens.cpp:79:15: note: 'll y1' declared here
79 | ll n, x1, y1;
| ^~
aliens.cpp: In function 'int main()':
aliens.cpp:84:68: error: could not convert '<lambda closure object>main()::<lambda(int)>{}' from 'main()::<lambda(int)>' to 'std::function<int(int)>'
84 | xL = binary_lift_descent([](int x){return examine(x1 - x, y1);});
| ^
| |
| main()::<lambda(int)>
aliens.cpp: In lambda function:
aliens.cpp:86:55: error: 'x1' is not captured
86 | yL = binary_lift_descent([](int x){return examine(x1, y1 - x);});
| ^~
aliens.cpp:86:31: note: the lambda has no capture-default
86 | yL = binary_lift_descent([](int x){return examine(x1, y1 - x);});
| ^
aliens.cpp:79:11: note: 'll x1' declared here
79 | ll n, x1, y1;
| ^~
aliens.cpp:86:59: error: 'y1' is not captured
86 | yL = binary_lift_descent([](int x){return examine(x1, y1 - x);});
| ^~
aliens.cpp:86:31: note: the lambda has no capture-default
86 | yL = binary_lift_descent([](int x){return examine(x1, y1 - x);});
| ^
aliens.cpp:79:15: note: 'll y1' declared here
79 | ll n, x1, y1;
| ^~
aliens.cpp: In function 'int main()':
aliens.cpp:86:68: error: could not convert '<lambda closure object>main()::<lambda(int)>{}' from 'main()::<lambda(int)>' to 'std::function<int(int)>'
86 | yL = binary_lift_descent([](int x){return examine(x1, y1 - x);});
| ^
| |
| main()::<lambda(int)>
aliens.cpp:89:8: error: redeclaration of 'll x1'
89 | ll x1 = (xL + xR) / 2, y1 = (yL + yR) / 2;
| ^~
aliens.cpp:79:11: note: 'll x1' previously declared here
79 | ll n, x1, y1;
| ^~
aliens.cpp:89:28: error: redeclaration of 'll y1'
89 | ll x1 = (xL + xR) / 2, y1 = (yL + yR) / 2;
| ^~
aliens.cpp:79:15: note: 'll y1' previously declared here
79 | ll n, x1, y1;
| ^~