0_0_31798601_17857.cpp: In function 'void solve()':
0_0_31798601_17857.cpp:106:18: error: expected unqualified-id before '[' token
auto [k1, k2] = queryR(u, v);
^
0_0_31798601_17857.cpp:107:31: error: 'k1' was not declared in this scope
printf("%d %d\n", k1 + 1, k2 + 1);
^
0_0_31798601_17857.cpp:107:39: error: 'k2' was not declared in this scope
printf("%d %d\n", k1 + 1, k2 + 1);
^
0_0_31798601_17857.cpp:109:18: error: expected unqualified-id before '[' token
auto [l, r] = queryS(u - 1, v - 1);
^
0_0_31798601_17857.cpp:110:16: error: 'l' was not declared in this scope
if(l != -1)
^
0_0_31798601_17857.cpp:111:38: error: 'r' was not declared in this scope
printf("%d %d\n", l, r);
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:71:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
from 0_0_31798601_17857.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/predefined_ops.h: In instantiation of 'bool __gnu_cxx::__ops::_Iter_comp_val<_Compare>::operator()(_Iterator, _Value&) [with _Iterator = __gnu_cxx::__normal_iterator<rg*, std::vector<rg> >; _Value = const int; _Compare = queryR(int, int)::<lambda(auto:1&&, auto:2&&)>]':
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:965:30: required from '_ForwardIterator std::__lower_bound(_ForwardIterator, _ForwardIterator, const _Tp&, _Compare) [with _ForwardIterator = __gnu_cxx::__normal_iterator<rg*, std::vector<rg> >; _Tp = int; _Compare = __gnu_cxx::__ops::_Iter_comp_val<queryR(int, int)::<lambda(auto:1&&, auto:2&&)> >]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:2036:46: required from '_FIter std::lower_bound(_FIter, _FIter, const _Tp&, _Compare) [with _FIter = __gnu_cxx::__normal_iterator<rg*, std::vector<rg> >; _Tp = int; _Compare = queryR(int, int)::<lambda(auto:1&&, auto:2&&)>]'
0_0_31798601_17857.cpp:86:6: required from here
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/predefined_ops.h:141:37: error: invalid use of 'auto'
{ return bool(_M_comp(*__it, __val)); }
^
|