circuit.cpp: In function 'void init(int, int, std::vector<int>, std::vector<int>)':
circuit.cpp:105:11: error: no match for 'operator=' (operand types are 'std::__cxx11::basic_string<int>' and 'std::vector<int>')
105 | p = P;
| ^
In file included from /usr/include/c++/10/string:55,
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 circuit.cpp:1:
/usr/include/c++/10/bits/basic_string.h:665:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::operator=(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = int; _Traits = std::char_traits<int>; _Alloc = std::allocator<int>]'
665 | operator=(const basic_string& __str)
| ^~~~~~~~
/usr/include/c++/10/bits/basic_string.h:665:37: note: no known conversion for argument 1 from 'std::vector<int>' to 'const std::__cxx11::basic_string<int>&'
665 | operator=(const basic_string& __str)
| ~~~~~~~~~~~~~~~~~~~~^~~~~
/usr/include/c++/10/bits/basic_string.h:675:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::operator=(const _CharT*) [with _CharT = int; _Traits = std::char_traits<int>; _Alloc = std::allocator<int>]'
675 | operator=(const _CharT* __s)
| ^~~~~~~~
/usr/include/c++/10/bits/basic_string.h:675:31: note: no known conversion for argument 1 from 'std::vector<int>' to 'const int*'
675 | operator=(const _CharT* __s)
| ~~~~~~~~~~~~~~^~~
/usr/include/c++/10/bits/basic_string.h:686:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::operator=(_CharT) [with _CharT = int; _Traits = std::char_traits<int>; _Alloc = std::allocator<int>]'
686 | operator=(_CharT __c)
| ^~~~~~~~
/usr/include/c++/10/bits/basic_string.h:686:24: note: no known conversion for argument 1 from 'std::vector<int>' to 'int'
686 | operator=(_CharT __c)
| ~~~~~~~^~~
/usr/include/c++/10/bits/basic_string.h:703:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::operator=(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&) [with _CharT = int; _Traits = std::char_traits<int>; _Alloc = std::allocator<int>]'
703 | operator=(basic_string&& __str)
| ^~~~~~~~
/usr/include/c++/10/bits/basic_string.h:703:32: note: no known conversion for argument 1 from 'std::vector<int>' to 'std::__cxx11::basic_string<int>&&'
703 | operator=(basic_string&& __str)
| ~~~~~~~~~~~~~~~^~~~~
/usr/include/c++/10/bits/basic_string.h:766:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::operator=(std::initializer_list<_Tp>) [with _CharT = int; _Traits = std::char_traits<int>; _Alloc = std::allocator<int>]'
766 | operator=(initializer_list<_CharT> __l)
| ^~~~~~~~
/usr/include/c++/10/bits/basic_string.h:766:42: note: no known conversion for argument 1 from 'std::vector<int>' to 'std::initializer_list<int>'
766 | operator=(initializer_list<_CharT> __l)
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/10/bits/basic_string.h:780:8: note: candidate: 'template<class _Tp> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_If_sv<_Tp, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::operator=(const _Tp&) [with _Tp = _Tp; _CharT = int; _Traits = std::char_traits<int>; _Alloc = std::allocator<int>]'
780 | operator=(const _Tp& __svt)
| ^~~~~~~~
/usr/include/c++/10/bits/basic_string.h:780:8: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/10/bits/move.h:57,
from /usr/include/c++/10/bits/stl_pair.h:59,
from /usr/include/c++/10/bits/stl_algobase.h:64,
from /usr/include/c++/10/bits/specfun.h:45,
from /usr/include/c++/10/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:41,
from circuit.cpp:1:
/usr/include/c++/10/type_traits: In substitution of 'template<bool _Cond, class _Tp> using enable_if_t = typename std::enable_if::type [with bool _Cond = false; _Tp = std::__cxx11::basic_string<int>&]':
/usr/include/c++/10/bits/basic_string.h:117:8: required by substitution of 'template<class _CharT, class _Traits, class _Alloc> template<class _Tp, class _Res> using _If_sv = std::enable_if_t<std::__and_<std::is_convertible<const _Tp&, std::basic_string_view<_CharT, _Traits> >, std::__not_<std::is_convertible<const _Tp*, const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>*> >, std::__not_<std::is_convertible<const _Tp&, const _CharT*> > >::value, _Res> [with _Tp = std::vector<int>; _Res = std::__cxx11::basic_string<int>&; _CharT = int; _Traits = std::char_traits<int>; _Alloc = std::allocator<int>]'
/usr/include/c++/10/bits/basic_string.h:780:8: required by substitution of 'template<class _Tp> std::__cxx11::basic_string<int>::_If_sv<_Tp, std::__cxx11::basic_string<int>&> std::__cxx11::basic_string<int>::operator=<_Tp>(const _Tp&) [with _Tp = std::vector<int>]'
circuit.cpp:105:11: required from here
/usr/include/c++/10/type_traits:2554:11: error: no type named 'type' in 'struct std::enable_if<false, std::__cxx11::basic_string<int>&>'
2554 | using enable_if_t = typename enable_if<_Cond, _Tp>::type;
| ^~~~~~~~~~~