제출 #1144881

#제출 시각아이디문제언어결과실행 시간메모리
1144881akamizane벽 (IOI14_wall)C++20
컴파일 에러
0 ms0 KiB
#include<bits/stdc++.h> using namespace std; struct Node{ int mi = 0, mx = 1e9; }; Node t[4 * maxn]; void apply (int id, int mi, int mx){ if (0 <= id && id < 4 * maxn){ t[id].mi = max(t[id].mi, mi); t[id].mx = min(t[id].mx, mx); t[id].mi = min(t[id].mi, mx); t[id].mx = max(t[id].mx, mi); } } void update(int id, int l, int r, int u, int v, int mode, int val){ if (r < u || v < l) return; if (u <= l && r <= v){ if (mode){ t[id].mx = min(t[id].mx, val); t[id].mi = min(t[id].mi, val); } else{ t[id].mx = max(t[id].mx, val); t[id].mi = max(t[id].mi, val); } return; } apply(id << 1, t[id].mi, t[id].mx); apply(id << 1 | 1, t[id].mi, t[id].mx); int mid = (l + r) / 2; t[id] = {0, (int)1e9}; update(id << 1, l, mid, u, v, mode, val); update(id << 1 | 1, mid + 1, r, u, v, mode, val); } int get(int id, int l, int r, int idx){ if (l == r){ return min(t[id].mi, t[id].mx); } int mid = (l + r) / 2; apply(id << 1, t[id].mi, t[id].mx); apply(id << 1 | 1, t[id].mi, t[id].mx); if(idx <= mid) return get(id << 1, l, mid); return get(id << 1 | 1, mid + 1, r); } void buildWall(int n, int k, int op[], int left[], int right[], int height[], int final_height[]) { for (int i = 0; i < k; i++) { update(1, 0, n - 1, left[i], right[i], op[i] - 1, height[i]); } get(1, 0, n - 1); for (int i = 0; i < n; i++) final_height[i] = get(1, 0, n - 1, i); }

컴파일 시 표준 에러 (stderr) 메시지

wall.cpp:9:12: error: 'maxn' was not declared in this scope
    9 | Node t[4 * maxn];
      |            ^~~~
wall.cpp: In function 'void apply(int, int, int)':
wall.cpp:11:29: error: 'maxn' was not declared in this scope; did you mean 'mx'?
   11 |     if (0 <= id && id < 4 * maxn){
      |                             ^~~~
      |                             mx
wall.cpp:12:9: error: 't' was not declared in this scope; did you mean 'tm'?
   12 |         t[id].mi = max(t[id].mi, mi);
      |         ^
      |         tm
wall.cpp: In function 'void update(int, int, int, int, int, int, int)':
wall.cpp:23:13: error: 't' was not declared in this scope
   23 |             t[id].mx = min(t[id].mx, val);
      |             ^
wall.cpp:27:13: error: 't' was not declared in this scope
   27 |             t[id].mx = max(t[id].mx, val);
      |             ^
wall.cpp:32:20: error: 't' was not declared in this scope
   32 |     apply(id << 1, t[id].mi, t[id].mx);
      |                    ^
wall.cpp: In function 'int get(int, int, int, int)':
wall.cpp:41:20: error: 't' was not declared in this scope
   41 |         return min(t[id].mi, t[id].mx);
      |                    ^
wall.cpp:44:20: error: 't' was not declared in this scope
   44 |     apply(id << 1, t[id].mi, t[id].mx);
      |                    ^
wall.cpp:46:30: error: no matching function for call to 'get(int, int&, int&)'
   46 |     if(idx <= mid) return get(id << 1, l, mid);
      |                           ~~~^~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
                 from wall.cpp:1:
/usr/include/c++/11/utility:223:5: note: candidate: 'template<long unsigned int _Int, class _Tp1, class _Tp2> constexpr typename std::tuple_element<_Int, std::pair<_OIter1, _OIter2> >::type& std::get(std::pair<_OIter1, _OIter2>&)'
  223 |     get(pair<_Tp1, _Tp2>& __in) noexcept
      |     ^~~
/usr/include/c++/11/utility:223:5: note:   template argument deduction/substitution failed:
wall.cpp:46:30: note:   mismatched types 'std::pair<_OIter1, _OIter2>' and 'int'
   46 |     if(idx <= mid) return get(id << 1, l, mid);
      |                           ~~~^~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
                 from wall.cpp:1:
/usr/include/c++/11/utility:228:5: note: candidate: 'template<long unsigned int _Int, class _Tp1, class _Tp2> constexpr typename std::tuple_element<_Int, std::pair<_OIter1, _OIter2> >::type&& std::get(std::pair<_OIter1, _OIter2>&&)'
  228 |     get(pair<_Tp1, _Tp2>&& __in) noexcept
      |     ^~~
/usr/include/c++/11/utility:228:5: note:   template argument deduction/substitution failed:
wall.cpp:46:30: note:   mismatched types 'std::pair<_OIter1, _OIter2>' and 'int'
   46 |     if(idx <= mid) return get(id << 1, l, mid);
      |                           ~~~^~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
                 from wall.cpp:1:
/usr/include/c++/11/utility:233:5: note: candidate: 'template<long unsigned int _Int, class _Tp1, class _Tp2> constexpr const typename std::tuple_element<_Int, std::pair<_OIter1, _OIter2> >::type& std::get(const std::pair<_OIter1, _OIter2>&)'
  233 |     get(const pair<_Tp1, _Tp2>& __in) noexcept
      |     ^~~
/usr/include/c++/11/utility:233:5: note:   template argument deduction/substitution failed:
wall.cpp:46:30: note:   mismatched types 'const std::pair<_OIter1, _OIter2>' and 'int'
   46 |     if(idx <= mid) return get(id << 1, l, mid);
      |                           ~~~^~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
                 from wall.cpp:1:
/usr/include/c++/11/utility:238:5: note: candidate: 'template<long unsigned int _Int, class _Tp1, class _Tp2> constexpr const typename std::tuple_element<_Int, std::pair<_OIter1, _OIter2> >::type&& std::get(const std::pair<_OIter1, _OIter2>&&)'
  238 |     get(const pair<_Tp1, _Tp2>&& __in) noexcept
      |     ^~~
/usr/include/c++/11/utility:238:5: note:   template argument deduction/substitution failed:
wall.cpp:46:30: note:   mismatched types 'const std::pair<_OIter1, _OIter2>' and 'int'
   46 |     if(idx <= mid) return get(id << 1, l, mid);
      |                           ~~~^~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
                 from wall.cpp:1:
/usr/include/c++/11/utility:247:5: note: candidate: 'template<class _Tp, class _Up> constexpr _Tp& std::get(std::pair<_T1, _T2>&)'
  247 |     get(pair<_Tp, _Up>& __p) noexcept
      |     ^~~
/usr/include/c++/11/utility:247:5: note:   template argument deduction/substitution failed:
wall.cpp:46:30: note:   mismatched types 'std::pair<_T1, _T2>' and 'int'
   46 |     if(idx <= mid) return get(id << 1, l, mid);
      |                           ~~~^~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
                 from wall.cpp:1:
/usr/include/c++/11/utility:252:5: note: candidate: 'template<class _Tp, class _Up> constexpr const _Tp& std::get(const std::pair<_T1, _T2>&)'
  252 |     get(const pair<_Tp, _Up>& __p) noexcept
      |     ^~~
/usr/include/c++/11/utility:252:5: note:   template argument deduction/substitution failed:
wall.cpp:46:30: note:   mismatched types 'const std::pair<_T1, _T2>' and 'int'
   46 |     if(idx <= mid) return get(id << 1, l, mid);
      |                           ~~~^~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
                 from wall.cpp:1:
/usr/include/c++/11/utility:257:5: note: candidate: 'template<class _Tp, class _Up> constexpr _Tp&& std::get(std::pair<_T1, _T2>&&)'
  257 |     get(pair<_Tp, _Up>&& __p) noexcept
      |     ^~~
/usr/include/c++/11/utility:257:5: note:   template argument deduction/substitution failed:
wall.cpp:46:30: note:   mismatched types 'std::pair<_T1, _T2>' and 'int'
   46 |     if(idx <= mid) return get(id << 1, l, mid);
      |                           ~~~^~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
                 from wall.cpp:1:
/usr/include/c++/11/utility:262:5: note: candidate: 'template<class _Tp, class _Up> constexpr const _Tp&& std::get(const std::pair<_T1, _T2>&&)'
  262 |     get(const pair<_Tp, _Up>&& __p) noexcept
      |     ^~~
/usr/include/c++/11/utility:262:5: note:   template argument deduction/substitution failed:
wall.cpp:46:30: note:   mismatched types 'const std::pair<_T1, _T2>' and 'int'
   46 |     if(idx <= mid) return get(id << 1, l, mid);
      |                           ~~~^~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
                 from wall.cpp:1:
/usr/include/c++/11/utility:267:5: note: candidate: 'template<class _Tp, class _Up> constexpr _Tp& std::get(std::pair<_Up, _Tp>&)'
  267 |     get(pair<_Up, _Tp>& __p) noexcept
      |     ^~~
/usr/include/c++/11/utility:267:5: note:   template argument deduction/substitution failed:
wall.cpp:46:30: note:   mismatched types 'std::pair<_Up, _Tp>' and 'int'
   46 |     if(idx <= mid) return get(id << 1, l, mid);
      |                           ~~~^~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
                 from wall.cpp:1:
/usr/include/c++/11/utility:272:5: note: candidate: 'template<class _Tp, class _Up> constexpr const _Tp& std::get(const std::pair<_Up, _Tp>&)'
  272 |     get(const pair<_Up, _Tp>& __p) noexcept
      |     ^~~
/usr/include/c++/11/utility:272:5: note:   template argument deduction/substitution failed:
wall.cpp:46:30: note:   mismatched types 'const std::pair<_Up, _Tp>' and 'int'
   46 |     if(idx <= mid) return get(id << 1, l, mid);
      |                           ~~~^~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
                 from wall.cpp:1:
/usr/include/c++/11/utility:277:5: note: candidate: 'template<class _Tp, class _Up> constexpr _Tp&& std::get(std::pair<_Up, _Tp>&&)'
  277 |     get(pair<_Up, _Tp>&& __p) noexcept
      |     ^~~
/usr/include/c++/11/utility:277:5: note:   template argument deduction/substitution failed:
wall.cpp:46:30: note:   mismatched types 'std::pair<_Up, _Tp>' and 'int'
   46 |     if(idx <= mid) return get(id << 1, l, mid);
      |                           ~~~^~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
                 from wall.cpp:1:
/usr/include/c++/11/utility:282:5: note: candidate: 'template<class _Tp, class _Up> constexpr const _Tp&& std::get(const std::pair<_Up, _Tp>&&)'
  282 |     get(const pair<_Up, _Tp>&& __p) noexcept
      |     ^~~
/usr/include/c++/11/utility:282:5: note:   template argument deduction/substitution failed:
wall.cpp:46:30: note:   mismatched types 'const std::pair<_Up, _Tp>' and 'int'
   46 |     if(idx <= mid) return get(id << 1, l, mid);
      |                           ~~~^~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/bits/ranges_algo.h:36,
                 from /usr/include/c++/11/algorithm:64,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
                 from wall.cpp:1:
/usr/include/c++/11/bits/ranges_util.h:381:5: note: candidate: 'template<long unsigned int _Num, class _It, class _Sent, std::ranges::subrange_kind _Kind>  requires  _Num < 2 constexpr auto std::ranges::get(std::ranges::subrange<_It, _Sent, _Kind>&&)'
  381 |     get(subrange<_It, _Sent, _Kind>&& __r)
      |     ^~~
/usr/include/c++/11/bits/ranges_util.h:381:5: note:   template argument deduction/substitution failed:
wall.cpp:46:30: note:   mismatched types 'std::ranges::subrange<_It, _Sent, _Kind>' and 'int'
   46 |     if(idx <= mid) return get(id << 1, l, mid);
      |                           ~~~^~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/bits/ranges_algo.h:36,
                 from /usr/include/c++/11/algorithm:64,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
                 from wall.cpp:1:
/usr/include/c++/11/bits/ranges_util.h:370:5: note: candidate: 'template<long unsigned int _Num, class _It, class _Sent, std::ranges::subrange_kind _Kind>  requires  _Num < 2 constexpr auto std::ranges::get(const std::ranges::subrange<_It, _Sent, _Kind>&)'
  370 |     get(const subrange<_It, _Sent, _Kind>& __r)
      |     ^~~
/usr/include/c++/11/bits/ranges_util.h:370:5: note:   template argument deduction/substitution failed:
wall.cpp:46:30: note:   mismatched types 'const std::ranges::subrange<_It, _Sent, _Kind>' and 'int'
   46 |     if(idx <= mid) return get(id << 1, l, mid);
      |                           ~~~^~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/tuple:39,
                 from /usr/include/c++/11/functional:54,
                 from /usr/include/c++/11/pstl/glue_algorithm_defs.h:13,
                 from /usr/include/c++/11/algorithm:74,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
                 from wall.cpp:1:
/usr/include/c++/11/array:361:5: note: candidate: 'template<long unsigned int _Int, class _Tp, long unsigned int _Nm> constexpr _Tp& std::get(std::array<_Tp, _Nm>&)'
  361 |     get(array<_Tp, _Nm>& __arr) noexcept
      |     ^~~
/usr/include/c++/11/array:361:5: note:   template argument deduction/substitution failed:
wall.cpp:46:30: note:   mismatched types 'std::array<_Tp, _Nm>' and 'int'
   46 |     if(idx <= mid) return get(id << 1, l, mid);
      |                           ~~~^~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/tuple:39,
                 from /usr/include/c++/11/functional:54,
                 from /usr/include/c++/11/pstl/glue_algorithm_defs.h:13,
                 from /usr/include/c++/11/algorithm:74,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
                 from wall.cpp:1:
/usr/include/c++/11/array:369:5: note: candidate: 'template<long unsigned int _Int, class _Tp, long unsigned int _Nm> constexpr _Tp&& std::get(std::array<_Tp, _Nm>&&)'
  369 |     get(array<_Tp, _Nm>&& __arr) noexcept
      |     ^~~
/usr/include/c++/11/array:369:5: note:   template argument deduction/substitution failed:
wall.cpp:46:30: note:   mismatched types 'std::array<_Tp, _Nm>' and 'int'
   46 |     if(idx <= mid) return get(id << 1, l, mid);
      |                           ~~~^~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/tuple:39,
                 from /usr/include/c++/11/functional:54,
                 from /usr/include/c++/11/pstl/glue_algorithm_defs.h:13,
                 from /usr/include/c++/11/algorithm:74,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
                 from wall.cpp:1:
/usr/include/c++/11/array:377:5: note: candidate: 'template<long unsigned int _Int, class _Tp, long unsigned int _Nm> constexpr const _Tp& std::get(const std::array<_Tp, _Nm>&)'
  377 |     get(const array<_Tp, _Nm>& __arr) noexcept
      |     ^~~
/usr/include/c++/11/array:377:5: note:   template argument deduction/substitution failed:
wall.cpp:46:30: note:   mismatched types 'const std::array<_Tp, _Nm>' and 'int'
   46 |     if(idx <= mid) return get(id << 1, l, mid);
      |                           ~~~^~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/tuple:39,
                 from /usr/include/c++/11/functional:54,
                 from /usr/include/c++/11/pstl/glue_algorithm_defs.h:13,
                 from /usr/include/c++/11/algorithm:74,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
                 from wall.cpp:1:
/usr/include/c++/11/array:385:5: note: candidate: 'template<long unsigned int _Int, class _Tp, long unsigned int _Nm> constexpr const _Tp&& std::get(const std::array<_Tp, _Nm>&&)'
  385 |     get(const array<_Tp, _Nm>&& __arr) noexcept
      |     ^~~
/usr/include/c++/11/array:385:5: note:   template argument deduction/substitution failed:
wall.cpp:46:30: note:   mismatched types 'const std::array<_Tp, _Nm>' and 'int'
   46 |     if(idx <= mid) return get(id << 1, l, mid);
      |                           ~~~^~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/functional:54,
                 from /usr/include/c++/11/pstl/glue_algorithm_defs.h:13,
                 from /usr/include/c++/11/algorithm:74,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
                 from wall.cpp:1:
/usr/include/c++/11/tuple:1393:5: note: candidate: 'template<long unsigned int __i, class ... _Elements> constexpr std::__tuple_element_t<__i, std::tuple<_UTypes ...> >& std::get(std::tuple<_UTypes ...>&)'
 1393 |     get(tuple<_Elements...>& __t) noexcept
      |     ^~~
/usr/include/c++/11/tuple:1393:5: note:   template argument deduction/substitution failed:
wall.cpp:46:30: note:   mismatched types 'std::tuple<_UTypes ...>' and 'int'
   46 |     if(idx <= mid) return get(id << 1, l, mid);
      |                           ~~~^~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/functional:54,
                 from /usr/include/c++/11/pstl/glue_algorithm_defs.h:13,
                 from /usr/include/c++/11/algorithm:74,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
                 from wall.cpp:1:
/usr/include/c++/11/tuple:1399:5: note: candidate: 'template<long unsigned int __i, class ... _Elements> constexpr std::__tuple_element_t<__i, std::tuple<_UTypes ...> >& std::get(const std::tuple<_UTypes ...>&)'
 1399 |     get(const tuple<_Elements...>& __t) noexcept
      |     ^~~
/usr/include/c++/11/tuple:1399:5: note:   template argument deduction/substitution failed:
wall.cpp:46:30: note:   mismatched types 'const std::tuple<_UTypes ...>' and 'int'
   46 |     if(idx <= mid) return get(id << 1, l, mid);
      |                           ~~~^~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/functional:54,
                 from /usr/include/c++/11/pstl/glue_algorithm_defs.h:13,
                 from /usr/include/c++/11/algorithm:74,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
                 from wall.cpp:1:
/usr/include/c++/11/tuple:1405:5: note: candidate: 'template<long unsigned int __i, class ... _Elements> constexpr std::__tuple_element_t<__i, std::tuple<_UTypes ...> >&& std::get(std::tuple<_UTypes ...>&&)'
 1405 |     get(tuple<_Elements...>&& __t) noexcept
      |     ^~~
/usr/include/c++/11/tuple:1405:5: note:   template argument deduction/substitution failed:
wall.cpp:46:30: note:   mismatched types 'std::tuple<_UTypes ...>' and 'int'
   46 |     if(idx <= mid) return get(id << 1, l, mid);
      |                           ~~~^~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/functional:54,
                 from /usr/include/c++/11/pstl/glue_algorithm_defs.h:13,
                 from /usr/include/c++/11/algorithm:74,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
                 from wall.cpp:1:
/usr/include/c++/11/tuple:1414:5: note: candidate: 'template<long unsigned int __i, class ... _Elements> constexpr std::__tuple_element_t<__i, std::tuple<_UTypes ...> >&& std::get(const std::tuple<_UTypes ...>&&)'
 1414 |     get(const tuple<_Elements...>&& __t) noexcept
      |     ^~~
/usr/include/c++/11/tuple:1414:5: note:   template argument deduction/substitution failed:
wall.cpp:46:30: note:   mismatched types 'const std::tuple<_UTypes ...>' and 'int'
   46 |     if(idx <= mid) return get(id << 1, l, mid);
      |                           ~~~^~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/functional:54,
                 from /usr/include/c++/11/pstl/glue_algorithm_defs.h:13,
                 from /usr/include/c++/11/algorithm:74,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
                 from wall.cpp:1:
/usr/include/c++/11/tuple:1449:5: note: candidate: 'template<class _Tp, class ... _Types> constexpr _Tp& std::get(std::tuple<_UTypes ...>&)'
 1449 |     get(tuple<_Types...>& __t) noexcept
      |     ^~~
/usr/include/c++/11/tuple:1449:5: note:   template argument deduction/substitution failed:
wall.cpp:46:30: note:   mismatched types 'std::tuple<_UTypes ...>' and 'int'
   46 |     if(idx <= mid) return get(id << 1, l, mid);
      |                           ~~~^~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/functional:54,
                 from /usr/include/c++/11/pstl/glue_algorithm_defs.h:13,
                 from /usr/include/c++/11/algorithm:74,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
                 from wall.cpp:1:
/usr/include/c++/11/tuple:1460:5: note: candidate: 'template<class _Tp, class ... _Types> constexpr _Tp&& std::get(std::tuple<_UTypes ...>&&)'
 1460 |     get(tuple<_Types...>&& __t) noexcept
      |     ^~~
/usr/include/c++/11/tuple:1460:5: note:   template argument deduction/substitution failed:
wall.cpp:46:30: note:   mismatched types 'std::tuple<_UTypes ...>' and 'int'
   46 |     if(idx <= mid) return get(id << 1, l, mid);
      |                           ~~~^~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/functional:54,
                 from /usr/include/c++/11/pstl/glue_algorithm_defs.h:13,
                 from /usr/include/c++/11/algorithm:74,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
                 from wall.cpp:1:
/usr/include/c++/11/tuple:1471:5: note: candidate: 'template<class _Tp, class ... _Types> constexpr const _Tp& std::get(const std::tuple<_UTypes ...>&)'
 1471 |     get(const tuple<_Types...>& __t) noexcept
      |     ^~~
/usr/include/c++/11/tuple:1471:5: note:   template argument deduction/substitution failed:
wall.cpp:46:30: note:   mismatched types 'const std::tuple<_UTypes ...>' and 'int'
   46 |     if(idx <= mid) return get(id << 1, l, mid);
      |                           ~~~^~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/functional:54,
                 from /usr/include/c++/11/pstl/glue_algorithm_defs.h:13,
                 from /usr/include/c++/11/algorithm:74,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
                 from wall.cpp:1:
/usr/include/c++/11/tuple:1483:5: note: candidate: 'template<class _Tp, class ... _Types> constexpr const _Tp&& std::get(const std::tuple<_UTypes ...>&&)'
 1483 |     get(const tuple<_Types...>&& __t) noexcept
      |     ^~~
/usr/include/c++/11/tuple:1483:5: note:   template argument deduction/substitution failed:
wall.cpp:46:30: note:   mismatched types 'const std::tuple<_UTypes ...>' and 'int'
   46 |     if(idx <= mid) return get(id << 1, l, mid);
      |                           ~~~^~~~~~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:133,
                 from wall.cpp:1:
/usr/include/c++/11/variant:1676:5: note: candidate: 'template<long unsigned int _Np, class ... _Types> constexpr std::variant_alternative_t<_Np, std::variant<_Types ...> >& std::get(std::variant<_Types ...>&)'
 1676 |     get(variant<_Types...>& __v)
      |     ^~~
/usr/include/c++/11/variant:1676:5: note:   template argument deduction/substitution failed:
wall.cpp:46:30: note:   mismatched types 'std::variant<_Types ...>' and 'int'
   46 |     if(idx <= mid) return get(id << 1, l, mid);
      |                           ~~~^~~~~~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:133,
                 from wall.cpp:1:
/usr/include/c++/11/variant:1687:5: note: candidate: 'template<long unsigned int _Np, class ... _Types> constexpr std::variant_alternative_t<_Np, std::variant<_Types ...> >&& std::get(std::variant<_Types ...>&&)'
 1687 |     get(variant<_Types...>&& __v)
      |     ^~~
/usr/include/c++/11/variant:1687:5: note:   template argument deduction/substitution failed:
wall.cpp:46:30: note:   mismatched types 'std::variant<_Types ...>' and 'int'
   46 |     if(idx <= mid) return get(id << 1, l, mid);
      |                           ~~~^~~~~~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:133,
                 from wall.cpp:1:
/usr/include/c++/11/variant:1698:5: note: candidate: 'template<long unsigned int _Np, class ... _Types> constexpr std::variant_alternative_t<_Np, std::variant<_Types ...> >& std::get(const std::variant<_Types ...>&)'
 1698 |     get(const variant<_Types...>& __v)
      |     ^~~
/usr/include/c++/11/variant:1698:5: note:   template argument deduction/substitution failed:
wall.cpp:46:30: note:   mismatched types 'const std::variant<_Types ...>' and 'int'
   46 |     if(idx <= mid) return get(id << 1, l, mid);
      |                           ~~~^~~~~~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:133,
                 from wall.cpp:1:
/usr/include/c++/11/variant:1709:5: note: candidate: 'template<long unsigned int _Np, class ... _Types> constexpr std::variant_alternative_t<_Np, std::variant<_Types ...> >&& std::get(const std::variant<_Types ...>&&)'
 1709 |     get(const variant<_Types...>&& __v)
      |     ^~~
/usr/include/c++/11/variant:1709:5: note:   template argument deduction/substitution failed:
wall.cpp:46:30: note:   mismatched types 'const std::variant<_Types ...>' and 'int'
   46 |     if(idx <= mid) return get(id << 1, l, mid);
      |                           ~~~^~~~~~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:133,
                 from wall.cpp:1:
/usr/include/c++/11/variant:1117:20: note: candidate: 'template<class _Tp, class ... _Types> constexpr _Tp& std::get(std::variant<_Types ...>&)'
 1117 |     constexpr _Tp& get(variant<_Types...>& __v)
      |                    ^~~
/usr/include/c++/11/variant:1117:20: note:   template argument deduction/substitution failed:
wall.cpp:46:30: note:   mismatched types 'std::variant<_Types ...>' and 'int'
   46 |     if(idx <= mid) return get(id << 1, l, mid);
      |                           ~~~^~~~~~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:133,
                 from wall.cpp:1:
/usr/include/c++/11/variant:1126:21: note: candidate: 'template<class _Tp, class ... _Types> constexpr _Tp&& std::get(std::variant<_Types ...>&&)'
 1126 |     constexpr _Tp&& get(variant<_Types...>&& __v)
      |                     ^~~
/usr/include/c++/11/variant:1126:21: note:   template argument deduction/substitution failed:
wall.cpp:46:30: note:   mismatched types 'std::variant<_Types ...>' and 'int'
   46 |     if(idx <= mid) return get(id << 1, l, mid);
      |                           ~~~^~~~~~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:133,
                 from wall.cpp:1:
/usr/include/c++/11/variant:1136:26: note: candidate: 'template<class _Tp, class ... _Types> constexpr const _Tp& std::get(const std::variant<_Types ...>&)'
 1136 |     constexpr const _Tp& get(const variant<_Types...>& __v)
      |                          ^~~
/usr/include/c++/11/variant:1136:26: note:   template argument deduction/substitution failed:
wall.cpp:46:30: note:   mismatched types 'const std::variant<_Types ...>' and 'int'
   46 |     if(idx <= mid) return get(id << 1, l, mid);
      |                           ~~~^~~~~~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:133,
                 from wall.cpp:1:
/usr/include/c++/11/variant:1145:27: note: candidate: 'template<class _Tp, class ... _Types> constexpr const _Tp&& std::get(const std::variant<_Types ...>&&)'
 1145 |     constexpr const _Tp&& get(const variant<_Types...>&& __v)
      |                           ^~~
/usr/include/c++/11/variant:1145:27: note:   template argument deduction/substitution failed:
wall.cpp:46:30: note:   mismatched types 'const std::variant<_Types ...>' and 'int'
   46 |     if(idx <= mid) return get(id << 1, l, mid);
      |                           ~~~^~~~~~~~~~~~~~~~~
wall.cpp:39:5: note: candidate: 'int get(int, int, int, int)'
   39 | int get(int id, int l, int r, int idx){
      |     ^~~
wall.cpp:39:5: note:   candidate expects 4 arguments, 3 provided
wall.cpp:47:15: error: no matching function for call to 'get(int, int, int&)'
   47 |     return get(id << 1 | 1, mid + 1, r);
      |            ~~~^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
                 from wall.cpp:1:
/usr/include/c++/11/utility:223:5: note: candidate: 'template<long unsigned int _Int, class _Tp1, class _Tp2> constexpr typename std::tuple_element<_Int, std::pair<_OIter1, _OIter2> >::type& std::get(std::pair<_OIter1, _OIter2>&)'
  223 |     get(pair<_Tp1, _Tp2>& __in) noexcept
      |     ^~~
/usr/include/c++/11/utility:223:5: note:   template argument deduction/substitution failed:
wall.cpp:47:15: note:   mismatched types 'std::pair<_OIter1, _OIter2>' and 'int'
   47 |     return get(id << 1 | 1, mid + 1, r);
      |            ~~~^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
                 from wall.cpp:1:
/usr/include/c++/11/utility:228:5: note: candidate: 'template<long unsigned int _Int, class _Tp1, class _Tp2> constexpr typename std::tuple_element<_Int, std::pair<_OIter1, _OIter2> >::type&& std::get(std::pair<_OIter1, _OIter2>&&)'
  228 |     get(pair<_Tp1, _Tp2>&& __in) noexcept
      |     ^~~
/usr/include/c++/11/utility:228:5: note:   template argument deduction/substitution failed:
wall.cpp:47:15: note:   mismatched types 'std::pair<_OIter1, _OIter2>' and 'int'
   47 |     return get(id << 1 | 1, mid + 1, r);
      |            ~~~^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
                 from wall.cpp:1:
/usr/include/c++/11/utility:233:5: note: candidate: 'template<long unsigned int _Int, class _Tp1, class _Tp2> constexpr const typename std::tuple_element<_Int, std::pair<_OIter1, _OIter2> >::type& std::get(const std::pair<_OIter1, _OIter2>&)'
  233 |     get(const pair<_Tp1, _Tp2>& __in) noexcept
      |     ^~~
/usr/include/c++/11/utility:233:5: note:   template argument deduction/substitution failed:
wall.cpp:47:15: note:   mismatched types 'const std::pair<_OIter1, _OIter2>' and 'int'
   47 |     return get(id << 1 | 1, mid + 1, r);
      |            ~~~^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
                 from wall.cpp:1:
/usr/include/c++/11/utility:238:5: note: candidate: 'template<long unsigned int _Int, class _Tp1, class _Tp2> constexpr const typename std::tuple_element<_Int, std::pair<_OIter1, _OIter2> >::type&& std::get(const std::pair<_OIter1, _OIter2>&&)'
  238 |     get(const pair<_Tp1, _Tp2>&& __in) noexcept
      |     ^~~
/usr/include/c++/11/utility:238:5: note:   template argument deduction/substitution failed:
wall.cpp:47:15: note:   mismatched types 'const std::pair<_OIter1, _OIter2>' and 'int'
   47 |     return get(id << 1 | 1, mid + 1, r);
      |            ~~~^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
                 from wall.cpp:1:
/usr/include/c++/11/utility:247:5: note: candidate: 'template<class _Tp, class _Up> constexpr _Tp& std::get(std::pair<_T1, _T2>&)'
  247 |     get(pair<_Tp, _Up>& __p) noexcept
      |     ^~~
/usr/include/c++/11/utility:247:5: note:   template argument deduction/substitution failed:
wall.cpp:47:15: note:   mismatched types 'std::pair<_T1, _T2>' and 'int'
   47 |     return get(id << 1 | 1, mid + 1, r);
      |            ~~~^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
                 from wall.cpp:1:
/usr/include/c++/11/utility:252:5: note: candidate: 'template<class _Tp, class _Up> constexpr const _Tp& std::get(const std::pair<_T1, _T2>&)'
  252 |     get(const pair<_Tp, _Up>& __p) noexcept
      |     ^~~
/usr/include/c++/11/utility:252:5: note:   template argument deduction/substitution failed:
wall.cpp:47:15: note:   mismatched types 'const std::pair<_T1, _T2>' and 'int'
   47 |     return get(id << 1 | 1, mid + 1, r);
      |            ~~~^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
                 from wall.cpp:1:
/usr/include/c++/11/utility:257:5: note: candidate: 'template<class _Tp, class _Up> constexpr _Tp&& std::get(std::pair<_T1, _T2>&&)'
  257 |     get(pair<_Tp, _Up>&& __p) noexcept
      |     ^~~
/usr/include/c++/11/utility:257:5: note:   template argument deduction/substitution failed:
wall.cpp:47:15: note:   mismatched types 'std::pair<_T1, _T2>' and 'int'
   47 |     return get(id << 1 | 1, mid + 1, r);
      |            ~~~^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
                 from wall.cpp:1:
/usr/include/c++/11/utility:262:5: note: candidate: 'template<class _Tp, class _Up> constexpr const _Tp&& std::get(const std::pair<_T1, _T2>&&)'
  262 |     get(const pair<_Tp, _Up>&& __p) noexcept
      |     ^~~
/usr/include/c++/11/utility:262:5: note:   template argument deduction/substitution failed:
wall.cpp:47:15: note:   mismatched types 'const std::pair<_T1, _T2>' and 'int'
   47 |     return get(id << 1 | 1, mid + 1, r);
      |            ~~~^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
                 from wall.cpp:1:
/usr/include/c++/11/utility:267:5: note: candidate: 'template<class _Tp, class _Up> constexpr _Tp& std::get(std::pair<_Up, _Tp>&)'
  267 |     get(pair<_Up, _Tp>& __p) noexcept
      |     ^~~
/usr/include/c++/11/utility:267:5: note:   template argument deduction/substitution failed:
wall.cpp:47:15: note:   mismatched types 'std::pair<_Up, _Tp>' and 'int'
   47 |     return get(id << 1 | 1, mid + 1, r);
      |            ~~~^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
                 from wall.cpp:1:
/usr/include/c++/11/utility:272:5: note: candidate: 'template<class _Tp, class _Up> constexpr const _Tp& std::get(const std::pair<_Up, _Tp>&)'
  272 |     get(const pair<_Up, _Tp>& __p) noexcept
      |     ^~~
/usr/include/c++/11/utility:272:5: note:   template argument deduction/substitution failed:
wall.cpp:47:15: note:   mismatched types 'const std::pair<_Up, _Tp>' and 'int'
   47 |     return get(id << 1 | 1, mid + 1, r);
      |            ~~~^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
                 from wall.cpp:1:
/usr/include/c++/11/utility:277:5: note: candidate: 'template<class _Tp, class _Up> constexpr _Tp&& std::get(std::pair<_Up, _Tp>&&)'
  277 |     get(pair<_Up, _Tp>&& __p) noexcept
      |     ^~~
/usr/include/c++/11/utility:277:5: note:   template argument deduction/substitution failed:
wall.cpp:47:15: note:   mismatched types 'std::pair<_Up, _Tp>' and 'int'
   47 |     return get(id << 1 | 1, mid + 1, r);
      |            ~~~^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
                 from wall.cpp:1:
/usr/include/c++/11/utility:282:5: note: candidate: 'template<class _Tp, class _Up> constexpr const _Tp&& std::get(const std::pair<_Up, _Tp>&&)'
  282 |     get(const pair<_Up, _Tp>&& __p) noexcept
      |     ^~~
/usr/include/c++/11/utility:282:5: note:   template argument deduction/substitution failed:
wall.cpp:47:15: note:   mismatched types 'const std::pair<_Up, _Tp>' and 'int'
   47 |     return get(id << 1 | 1, mid + 1, r);
      |            ~~~^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/bits/ranges_algo.h:36,
                 from /usr/include/c++/11/algorithm:64,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
                 from wall.cpp:1:
/usr/include/c++/11/bits/ranges_util.h:381:5: note: candidate: 'template<long unsigned int _Num, class _It, class _Sent, std::ranges::subrange_kind _Kind>  requires  _Num < 2 constexpr auto std::ranges::get(std::ranges::subrange<_It, _Sent, _Kind>&&)'
  381 |     get(subrange<_It, _Sent, _Kind>&& __r)
      |     ^~~
/usr/include/c++/11/bits/ranges_util.h:381:5: note:   template argument deduction/substitution failed:
wall.cpp:47:15: note:   mismatched types 'std::ranges::subrange<_It, _Sent, _Kind>' and 'int'
   47 |     return get(id << 1 | 1, mid + 1, r);
      |            ~~~^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/bits/ranges_algo.h:36,
                 from /usr/include/c++/11/algorithm:64,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
                 from wall.cpp:1:
/usr/include/c++/11/bits/ranges_util.h:370:5: note: candidate: 'template<long unsigned int _Num, class _It, class _Sent, std::ranges::subrange_kind _Kind>  requires  _Num < 2 constexpr auto std::ranges::get(const std::ranges::subrange<_It, _Sent, _Kind>&)'
  370 |     get(const subrange<_It, _Sent, _Kind>& __r)
      |     ^~~
/usr/include/c++/11/bits/ranges_util.h:370:5: note:   template argument deduction/substitution failed:
wall.cpp:47:15: note:   mismatched types 'const std::ranges::subrange<_It, _Sent, _Kind>' and 'int'
   47 |     return get(id << 1 | 1, mid + 1, r);
      |            ~~~^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/tuple:39,
                 from /usr/include/c++/11/functional:54,
                 from /usr/include/c++/11/pstl/glue_algorithm_defs.h:13,
                 from /usr/include/c++/11/algorithm:74,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
                 from wall.cpp:1:
/usr/include/c++/11/array:361:5: note: candidate: 'template<long unsigned int _Int, class _Tp, long unsigned int _Nm> constexpr _Tp& std::get(std::array<_Tp, _Nm>&)'
  361 |     get(array<_Tp, _Nm>& __arr) noexcept
      |     ^~~
/usr/include/c++/11/array:361:5: note:   template argument deduction/substitution failed:
wall.cpp:47:15: note:   mismatched types 'std::array<_Tp, _Nm>' and 'int'
   47 |     return get(id << 1 | 1, mid + 1, r);
      |            ~~~^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/tuple:39,
                 from /usr/include/c++/11/functional:54,
                 from /usr/include/c++/11/pstl/glue_algorithm_defs.h:13,
                 from /usr/include/c++/11/algorithm:74,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
                 from wall.cpp:1:
/usr/include/c++/11/array:369:5: note: candidate: 'template<long unsigned int _Int, class _Tp, long unsigned int _Nm> constexpr _Tp&& std::get(std::array<_Tp, _Nm>&&)'
  369 |     get(array<_Tp, _Nm>&& __arr) noexcept
      |     ^~~
/usr/include/c++/11/array:369:5: note:   template argument deduction/substitution failed:
wall.cpp:47:15: note:   mismatched types 'std::array<_Tp, _Nm>' and 'int'
   47 |     return get(id << 1 | 1, mid + 1, r);
      |            ~~~^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/tuple:39,
                 from /usr/include/c++/11/functional:54,
                 from /usr/include/c++/11/pstl/glue_algorithm_defs.h:13,
                 from /usr/include/c++/11/algorithm:74,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
                 from wall.cpp:1:
/usr/include/c++/11/array:377:5: note: candidate: 'template<long unsigned int _Int, class _Tp, long unsigned int _Nm> constexpr const _Tp& std::get(const std::array<_Tp, _Nm>&)'
  377 |     get(const array<_Tp, _Nm>& __arr) noexcept
      |     ^~~
/usr/include/c++/11/array:377:5: note:   template argument deduction/substitution failed:
wall.cpp:47:15: note:   mismatched types 'const std::array<_Tp, _Nm>' and 'int'
   47 |     return get(id << 1 | 1, mid + 1, r);
      |            ~~~^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/tuple:39,
                 from /usr/include/c++/11/functional:54,
                 from /usr/include/c++/11/pstl/glue_algorithm_defs.h:13,
                 from /usr/include/c++/11/algorithm:74,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
                 from wall.cpp:1:
/usr/include/c++/11/array:385:5: note: candidate: 'template<long unsigned int _Int, class _Tp, long unsigned int _Nm> constexpr const _Tp&& std::get(const std::array<_Tp, _Nm>&&)'
  385 |     get(const array<_Tp, _Nm>&& __arr) noexcept
      |     ^~~
/usr/include/c++/11/array:385:5: note:   template argument deduction/substitution failed:
wall.cpp:47:15: note:   mismatched types 'const std::array<_Tp, _Nm>' and 'int'
   47 |     return get(id << 1 | 1, mid + 1, r);
      |            ~~~^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/functional:54,
                 from /usr/include/c++/11/pstl/glue_algorithm_defs.h:13,
                 from /usr/include/c++/11/algorithm:74,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
                 from wall.cpp:1:
/usr/include/c++/11/tuple:1393:5: note: candidate: 'template<long unsigned int __i, class ... _Elements> constexpr std::__tuple_element_t<__i, std::tuple<_UTypes ...> >& std::get(std::tuple<_UTypes ...>&)'
 1393 |     get(tuple<_Elements...>& __t) noexcept
      |     ^~~
/usr/include/c++/11/tuple:1393:5: note:   template argument deduction/substitution failed:
wall.cpp:47:15: note:   mismatched types 'std::tuple<_UTypes ...>' and 'int'
   47 |     return get(id << 1 | 1, mid + 1, r);
      |            ~~~^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/functional:54,
                 from /usr/include/c++/11/pstl/glue_algorithm_defs.h:13,
                 from /usr/include/c++/11/algorithm:74,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
                 from wall.cpp:1:
/usr/include/c++/11/tuple:1399:5: note: candidate: 'template<long unsigned int __i, class ... _Elements> constexpr std::__tuple_element_t<__i, std::tuple<_UTypes ...> >& std::get(const std::tuple<_UTypes ...>&)'
 1399 |     get(const tuple<_Elements...>& __t) noexcept
      |     ^~~
/usr/include/c++/11/tuple:1399:5: note:   template argument deduction/substitution failed:
wall.cpp:47:15: note:   mismatched types 'const std::tuple<_UTypes ...>' and 'int'
   47 |     return get(id << 1 | 1, mid + 1, r);
      |            ~~~^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/functional:54,
                 from /usr/include/c++/11/pstl/glue_algorithm_defs.h:13,
                 from /usr/include/c++/11/algorithm:74,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
                 from wall.cpp:1:
/usr/include/c++/11/tuple:1405:5: note: candidate: 'template<long unsigned int __i, class ... _Elements> constexpr std::__tuple_element_t<__i, std::tuple<_UTypes ...> >&& std::get(std::tuple<_UTypes ...>&&)'
 1405 |     get(tuple<_Elements...>&& __t) noexcept
      |     ^~~
/usr/include/c++/11/tuple:1405:5: note:   template argument deduction/substitution failed:
wall.cpp:47:15: note:   mismatched types 'std::tuple<_UTypes ...>' and 'int'
   47 |     return get(id << 1 | 1, mid + 1, r);
      |            ~~~^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/functional:54,
                 from /usr/include/c++/11/pstl/glue_algorithm_defs.h:13,
                 from /usr/include/c++/11/algorithm:74,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
                 from wall.cpp:1:
/usr/include/c++/11/tuple:1414:5: note: candidate: 'template<long unsigned int __i, class ... _Elements> constexpr std::__tuple_element_t<__i, std::tuple<_UTypes ...> >&& std::get(const std::tuple<_UTypes ...>&&)'
 1414 |     get(const tuple<_Elements...>&& __t) noexcept
      |     ^~~
/usr/include/c++/11/tuple:1414:5: note:   template argument deduction/substitution failed:
wall.cpp:47:15: note:   mismatched types 'const std::tuple<_UTypes ...>' and 'int'
   47 |     return get(id << 1 | 1, mid + 1, r);
      |            ~~~^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/functional:54,
                 from /usr/include/c++/11/pstl/glue_algorithm_defs.h:13,
                 from /usr/include/c++/11/algorithm:74,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
                 from wall.cpp:1:
/usr/include/c++/11/tuple:1449:5: note: candidate: 'template<class _Tp, class ... _Types> constexpr _Tp& std::get(std::tuple<_UTypes ...>&)'
 1449 |     get(tuple<_Types...>& __t) noexcept
      |     ^~~
/usr/include/c++/11/tuple:1449:5: note:   template argument deduction/substitution failed:
wall.cpp:47:15: note:   mismatched types 'std::tuple<_UTypes ...>' and 'int'
   47 |     return get(id << 1 | 1, mid + 1, r);
      |            ~~~^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/functional:54,
                 from /usr/include/c++/11/pstl/glue_algorithm_defs.h:13,
                 from /usr/include/c++/11/algorithm:74,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
                 from wall.cpp:1:
/usr/include/c++/11/tuple:1460:5: note: candidate: 'template<class _Tp, class ... _Types> constexpr _Tp&& std::get(std::tuple<_UTypes ...>&&)'
 1460 |     get(tuple<_Types...>&& __t) noexcept
      |     ^~~
/usr/include/c++/11/tuple:1460:5: note:   template argument deduction/substitution failed:
wall.cpp:47:15: note:   mismatched types 'std::tuple<_UTypes ...>' and 'int'
   47 |     return get(id << 1 | 1, mid + 1, r);
      |            ~~~^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/functional:54,
                 from /usr/include/c++/11/pstl/glue_algorithm_defs.h:13,
                 from /usr/include/c++/11/algorithm:74,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
                 from wall.cpp:1:
/usr/include/c++/11/tuple:1471:5: note: candidate: 'template<class _Tp, class ... _Types> constexpr const _Tp& std::get(const std::tuple<_UTypes ...>&)'
 1471 |     get(const tuple<_Types...>& __t) noexcept
      |     ^~~
/usr/include/c++/11/tuple:1471:5: note:   template argument deduction/substitution failed:
wall.cpp:47:15: note:   mismatched types 'const std::tuple<_UTypes ...>' and 'int'
   47 |     return get(id << 1 | 1, mid + 1, r);
      |            ~~~^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/functional:54,
                 from /usr/include/c++/11/pstl/glue_algorithm_defs.h:13,
                 from /usr/include/c++/11/algorithm:74,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
                 from wall.cpp:1:
/usr/include/c++/11/tuple:1483:5: note: candidate: 'template<class _Tp, class ... _Types> constexpr const _Tp&& std::get(const std::tuple<_UTypes ...>&&)'
 1483 |     get(const tuple<_Types...>&& __t) noexcept
      |     ^~~
/usr/include/c++/11/tuple:1483:5: note:   template argument deduction/substitution failed:
wall.cpp:47:15: note:   mismatched types 'const std::tuple<_UTypes ...>' and 'int'
   47 |     return get(id << 1 | 1, mid + 1, r);
      |            ~~~^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:133,
                 from wall.cpp:1:
/usr/include/c++/11/variant:1676:5: note: candidate: 'template<long unsigned int _Np, class ... _Types> constexpr std::variant_alternative_t<_Np, std::variant<_Types ...> >& std::get(std::variant<_Types ...>&)'
 1676 |     get(variant<_Types...>& __v)
      |     ^~~
/usr/include/c++/11/variant:1676:5: note:   template argument deduction/substitution failed:
wall.cpp:47:15: note:   mismatched types 'std::variant<_Types ...>' and 'int'
   47 |     return get(id << 1 | 1, mid + 1, r);
      |            ~~~^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:133,
                 from wall.cpp:1:
/usr/include/c++/11/variant:1687:5: note: candidate: 'template<long unsigned int _Np, class ... _Types> constexpr std::variant_alternative_t<_Np, std::variant<_Types ...> >&& std::get(std::variant<_Types ...>&&)'
 1687 |     get(variant<_Types...>&& __v)
      |     ^~~
/usr/include/c++/11/variant:1687:5: note:   template argument deduction/substitution failed:
wall.cpp:47:15: note:   mismatched types 'std::variant<_Types ...>' and 'int'
   47 |     return get(id << 1 | 1, mid + 1, r);
      |            ~~~^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:133,
                 from wall.cpp:1:
/usr/include/c++/11/variant:1698:5: note: candidate: 'template<long unsigned int _Np, class ... _Types> constexpr std::variant_alternative_t<_Np, std::variant<_Types ...> >& std::get(const std::variant<_Types ...>&)'
 1698 |     get(const variant<_Types...>& __v)
      |     ^~~
/usr/include/c++/11/variant:1698:5: note:   template argument deduction/substitution failed:
wall.cpp:47:15: note:   mismatched types 'const std::variant<_Types ...>' and 'int'
   47 |     return get(id << 1 | 1, mid + 1, r);
      |            ~~~^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:133,
                 from wall.cpp:1:
/usr/include/c++/11/variant:1709:5: note: candidate: 'template<long unsigned int _Np, class ... _Types> constexpr std::variant_alternative_t<_Np, std::variant<_Types ...> >&& std::get(const std::variant<_Types ...>&&)'
 1709 |     get(const variant<_Types...>&& __v)
      |     ^~~
/usr/include/c++/11/variant:1709:5: note:   template argument deduction/substitution failed:
wall.cpp:47:15: note:   mismatched types 'const std::variant<_Types ...>' and 'int'
   47 |     return get(id << 1 | 1, mid + 1, r);
      |            ~~~^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:133,
                 from wall.cpp:1:
/usr/include/c++/11/variant:1117:20: note: candidate: 'template<class _Tp, class ... _Types> constexpr _Tp& std::get(std::variant<_Types ...>&)'
 1117 |     constexpr _Tp& get(variant<_Types...>& __v)
      |                    ^~~
/usr/include/c++/11/variant:1117:20: note:   template argument deduction/substitution failed:
wall.cpp:47:15: