new_home.cpp: In lambda function:
new_home.cpp:62:5: error: expected primary-expression before '}' token
62 | }
| ^
new_home.cpp: In function 'int main()':
new_home.cpp:71:9: error: 'Remove' was not declared in this scope; did you mean 'remove'?
71 | Remove(t[j], x[j], i);
| ^~~~~~
| remove
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/c++allocator.h:33,
from /usr/include/c++/10/bits/allocator.h:46,
from /usr/include/c++/10/string:41,
from /usr/include/c++/10/bits/locale_classes.h:40,
from /usr/include/c++/10/bits/ios_base.h:41,
from /usr/include/c++/10/ios:42,
from /usr/include/c++/10/istream:38,
from /usr/include/c++/10/sstream:38,
from /usr/include/c++/10/complex:45,
from /usr/include/c++/10/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54,
from new_home.cpp:2:
/usr/include/c++/10/ext/new_allocator.h: In instantiation of 'void __gnu_cxx::new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = std::array<int, 4>; _Args = {const int&, const int&, const int&, int&}; _Tp = std::array<int, 4>]':
/usr/include/c++/10/bits/alloc_traits.h:512:17: required from 'static void std::allocator_traits<std::allocator<_CharT> >::construct(std::allocator_traits<std::allocator<_CharT> >::allocator_type&, _Up*, _Args&& ...) [with _Up = std::array<int, 4>; _Args = {const int&, const int&, const int&, int&}; _Tp = std::array<int, 4>; std::allocator_traits<std::allocator<_CharT> >::allocator_type = std::allocator<std::array<int, 4> >]'
/usr/include/c++/10/bits/vector.tcc:115:30: required from 'void std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {const int&, const int&, const int&, int&}; _Tp = std::array<int, 4>; _Alloc = std::allocator<std::array<int, 4> >]'
new_home.cpp:55:65: required from here
/usr/include/c++/10/ext/new_allocator.h:150:4: error: new initializer expression list treated as compound expression [-fpermissive]
150 | { ::new((void *)__p) _Up(std::forward<_Args>(__args)...); }
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/10/ext/new_allocator.h:150:4: error: no matching function for call to 'std::array<int, 4>::array(int&)'
In file included from /usr/include/c++/10/tuple:39,
from /usr/include/c++/10/functional:54,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:71,
from new_home.cpp:2:
/usr/include/c++/10/array:94:12: note: candidate: 'std::array<int, 4>::array()'
94 | struct array
| ^~~~~
/usr/include/c++/10/array:94:12: note: candidate expects 0 arguments, 1 provided
/usr/include/c++/10/array:94:12: note: candidate: 'constexpr std::array<int, 4>::array(const std::array<int, 4>&)'
/usr/include/c++/10/array:94:12: note: no known conversion for argument 1 from 'int' to 'const std::array<int, 4>&'
/usr/include/c++/10/array:94:12: note: candidate: 'constexpr std::array<int, 4>::array(std::array<int, 4>&&)'
/usr/include/c++/10/array:94:12: note: no known conversion for argument 1 from 'int' to 'std::array<int, 4>&&'