doll.cpp: In function 'll dfs(ll)':
doll.cpp:25:4: error: 'b' was not declared in this scope
25 | if(b[-node]==1){
| ^
doll.cpp: In function 'void create_circuit(int, std::vector<int>)':
doll.cpp:37:13: warning: comparison of integer expressions of different signedness: 'll' {aka 'int'} and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
37 | for(ll i=0;i<A.size();i++)
| ~^~~~~~~~~
doll.cpp:43:12: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
43 | while(nodes<a.size()){
| ~~~~~^~~~~~~~~
doll.cpp:47:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
47 | for(int i=0;i<a.size();i++)
| ~^~~~~~~~~
doll.cpp:49:5: error: reference to 'real' is ambiguous
49 | real[dfs(-1)]=a[i];
| ^~~~
In file included from /usr/include/c++/10/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54,
from doll.cpp:1:
/usr/include/c++/10/complex:1874:5: note: candidates are: 'template<class _Tp> constexpr typename __gnu_cxx::__promote<_Tp>::__type std::real(_Tp)'
1874 | real(_Tp __x)
| ^~~~
/usr/include/c++/10/complex:568:5: note: 'template<class _Tp> constexpr _Tp std::real(const std::complex<_Tp>&)'
568 | real(const complex<_Tp>& __z)
| ^~~~
doll.cpp:6:45: note: 'll real [400001]'
6 | ll leftp[nmax+1],rightp[nmax+1],cng[nmax+1],real[nmax+1],switches=0,added=0;
| ^~~~
doll.cpp:57:16: error: reference to 'real' is ambiguous
57 | X[k-1]=real[X[k-1]];
| ^~~~
In file included from /usr/include/c++/10/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54,
from doll.cpp:1:
/usr/include/c++/10/complex:1874:5: note: candidates are: 'template<class _Tp> constexpr typename __gnu_cxx::__promote<_Tp>::__type std::real(_Tp)'
1874 | real(_Tp __x)
| ^~~~
/usr/include/c++/10/complex:568:5: note: 'template<class _Tp> constexpr _Tp std::real(const std::complex<_Tp>&)'
568 | real(const complex<_Tp>& __z)
| ^~~~
doll.cpp:6:45: note: 'll real [400001]'
6 | ll leftp[nmax+1],rightp[nmax+1],cng[nmax+1],real[nmax+1],switches=0,added=0;
| ^~~~
doll.cpp:60:20: error: reference to 'real' is ambiguous
60 | Y[k-1]=real[Y[k-1]];
| ^~~~
In file included from /usr/include/c++/10/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54,
from doll.cpp:1:
/usr/include/c++/10/complex:1874:5: note: candidates are: 'template<class _Tp> constexpr typename __gnu_cxx::__promote<_Tp>::__type std::real(_Tp)'
1874 | real(_Tp __x)
| ^~~~
/usr/include/c++/10/complex:568:5: note: 'template<class _Tp> constexpr _Tp std::real(const std::complex<_Tp>&)'
568 | real(const complex<_Tp>& __z)
| ^~~~
doll.cpp:6:45: note: 'll real [400001]'
6 | ll leftp[nmax+1],rightp[nmax+1],cng[nmax+1],real[nmax+1],switches=0,added=0;
| ^~~~
doll.cpp: In function 'll dfs(ll)':
doll.cpp:24:11: warning: control reaches end of non-void function [-Wreturn-type]
24 | cng[-node]=(!cng[-node]);
| ~~~~~~~~~~^~~~~~~~~~~~~~