nlo.cpp: In function 'int main()':
nlo.cpp:42:48: error: cannot bind non-const lvalue reference of type 'int&' to an rvalue of type 'int'
while (lf > 1 && dist(x, ro, y, lf - 1) <= rr)
~~~^~~
nlo.cpp:21:4: note: initializing argument 4 of 'll dist(int&, int&, int&, int&)'
ll dist(int &x1, int &x2, int &y1, int &y2){
^~~~
nlo.cpp:45:48: error: cannot bind non-const lvalue reference of type 'int&' to an rvalue of type 'int'
while (rt < m && dist(x, ro, y, rt + 1) <= rr)
~~~^~~
nlo.cpp:21:4: note: initializing argument 4 of 'll dist(int&, int&, int&, int&)'
ll dist(int &x1, int &x2, int &y1, int &y2){
^~~~
nlo.cpp:56:48: error: cannot bind non-const lvalue reference of type 'int&' to an rvalue of type 'int'
while (lf > 1 && dist(x, ro, y, lf - 1) <= rr)
~~~^~~
nlo.cpp:21:4: note: initializing argument 4 of 'll dist(int&, int&, int&, int&)'
ll dist(int &x1, int &x2, int &y1, int &y2){
^~~~
nlo.cpp:59:48: error: cannot bind non-const lvalue reference of type 'int&' to an rvalue of type 'int'
while (rt < m && dist(x, ro, y, rt + 1) <= rr)
~~~^~~
nlo.cpp:21:4: note: initializing argument 4 of 'll dist(int&, int&, int&, int&)'
ll dist(int &x1, int &x2, int &y1, int &y2){
^~~~