prog.cpp: In function ‘int main()’:
prog.cpp:40:22: error: no matching function for call to ‘std::__cxx11::list<int>::push_back(std::__cxx11::list<int>&)’
l[i].push_back(t);
^
In file included from /usr/include/c++/8/list:63,
from /usr/include/x86_64-linux-gnu/c++/8/bits/stdc++.h:79,
from prog.cpp:1:
/usr/include/c++/8/bits/stl_list.h:1219:7: note: candidate: ‘void std::__cxx11::list<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = int; _Alloc = std::allocator<int>; std::__cxx11::list<_Tp, _Alloc>::value_type = int]’
push_back(const value_type& __x)
^~~~~~~~~
/usr/include/c++/8/bits/stl_list.h:1219:7: note: no known conversion for argument 1 from ‘std::__cxx11::list<int>’ to ‘const value_type&’ {aka ‘const int&’}
/usr/include/c++/8/bits/stl_list.h:1224:7: note: candidate: ‘void std::__cxx11::list<_Tp, _Alloc>::push_back(std::__cxx11::list<_Tp, _Alloc>::value_type&&) [with _Tp = int; _Alloc = std::allocator<int>; std::__cxx11::list<_Tp, _Alloc>::value_type = int]’
push_back(value_type&& __x)
^~~~~~~~~
/usr/include/c++/8/bits/stl_list.h:1224:7: note: no known conversion for argument 1 from ‘std::__cxx11::list<int>’ to ‘std::__cxx11::list<int>::value_type&&’ {aka ‘int&&’}