nlo.cpp: In function 'int main()':
nlo.cpp:59:27: error: expected ')' before 'sy'
if (!gd(sx[j] sy[j], x, sy, R[j])) continue;
^~
nlo.cpp:59:45: error: invalid conversion from 'int*' to 'll {aka long long int}' [-fpermissive]
if (!gd(sx[j] sy[j], x, sy, R[j])) continue;
^
nlo.cpp:59:45: error: too few arguments to function 'bool gd(ll, ll, ll, ll, ll)'
nlo.cpp:31:6: note: declared here
bool gd(ll sx, ll sy, ll x, ll y, ll r)
^~
nlo.cpp:67:43: error: invalid conversion from 'int*' to 'll {aka long long int}' [-fpermissive]
if (gd(sx, sy, x, md, R[j])) r = md; else l = md + 1;
^
nlo.cpp:31:6: note: initializing argument 1 of 'bool gd(ll, ll, ll, ll, ll)'
bool gd(ll sx, ll sy, ll x, ll y, ll r)
^~
nlo.cpp:67:43: error: invalid conversion from 'int*' to 'll {aka long long int}' [-fpermissive]
if (gd(sx, sy, x, md, R[j])) r = md; else l = md + 1;
^
nlo.cpp:31:6: note: initializing argument 2 of 'bool gd(ll, ll, ll, ll, ll)'
bool gd(ll sx, ll sy, ll x, ll y, ll r)
^~
nlo.cpp:78:43: error: invalid conversion from 'int*' to 'll {aka long long int}' [-fpermissive]
if (gd(sx, sy, x, md, R[j])) l = md; else r = md - 1;
^
nlo.cpp:31:6: note: initializing argument 1 of 'bool gd(ll, ll, ll, ll, ll)'
bool gd(ll sx, ll sy, ll x, ll y, ll r)
^~
nlo.cpp:78:43: error: invalid conversion from 'int*' to 'll {aka long long int}' [-fpermissive]
if (gd(sx, sy, x, md, R[j])) l = md; else r = md - 1;
^
nlo.cpp:31:6: note: initializing argument 2 of 'bool gd(ll, ll, ll, ll, ll)'
bool gd(ll sx, ll sy, ll x, ll y, ll r)
^~
nlo.cpp:81:42: error: invalid conversion from 'int*' to 'll {aka long long int}' [-fpermissive]
while (!gd(sx, sy, x, l, R[j])) l--;
^
nlo.cpp:31:6: note: initializing argument 1 of 'bool gd(ll, ll, ll, ll, ll)'
bool gd(ll sx, ll sy, ll x, ll y, ll r)
^~
nlo.cpp:81:42: error: invalid conversion from 'int*' to 'll {aka long long int}' [-fpermissive]
while (!gd(sx, sy, x, l, R[j])) l--;
^
nlo.cpp:31:6: note: initializing argument 2 of 'bool gd(ll, ll, ll, ll, ll)'
bool gd(ll sx, ll sy, ll x, ll y, ll r)
^~
nlo.cpp:83:45: error: invalid conversion from 'int*' to 'll {aka long long int}' [-fpermissive]
while (gd(sx, sy, x, l + 1, R[j])) l++;
^
nlo.cpp:31:6: note: initializing argument 1 of 'bool gd(ll, ll, ll, ll, ll)'
bool gd(ll sx, ll sy, ll x, ll y, ll r)
^~
nlo.cpp:83:45: error: invalid conversion from 'int*' to 'll {aka long long int}' [-fpermissive]
while (gd(sx, sy, x, l + 1, R[j])) l++;
^
nlo.cpp:31:6: note: initializing argument 2 of 'bool gd(ll, ll, ll, ll, ll)'
bool gd(ll sx, ll sy, ll x, ll y, ll r)
^~
nlo.cpp:87:19: error: 'i' was not declared in this scope
g.pb({i + 1, {L, R}});
^
nlo.cpp:87:33: error: no matching function for call to 'std::vector<std::pair<int, std::pair<int, int> > >::push_back(<brace-enclosed initializer list>)'
g.pb({i + 1, {L, R}});
^
In file included from /usr/include/c++/7/vector:64:0,
from /usr/include/c++/7/queue:61,
from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:86,
from nlo.cpp:1:
/usr/include/c++/7/bits/stl_vector.h:939:7: note: candidate: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::pair<int, std::pair<int, int> >; _Alloc = std::allocator<std::pair<int, std::pair<int, int> > >; std::vector<_Tp, _Alloc>::value_type = std::pair<int, std::pair<int, int> >]
push_back(const value_type& __x)
^~~~~~~~~
/usr/include/c++/7/bits/stl_vector.h:939:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const value_type& {aka const std::pair<int, std::pair<int, int> >&}'
/usr/include/c++/7/bits/stl_vector.h:953:7: note: candidate: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = std::pair<int, std::pair<int, int> >; _Alloc = std::allocator<std::pair<int, std::pair<int, int> > >; std::vector<_Tp, _Alloc>::value_type = std::pair<int, std::pair<int, int> >]
push_back(value_type&& __x)
^~~~~~~~~
/usr/include/c++/7/bits/stl_vector.h:953:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::vector<std::pair<int, std::pair<int, int> > >::value_type&& {aka std::pair<int, std::pair<int, int> >&&}'