doll.cpp: In function 'int createpath(std::vector<int>)':
doll.cpp:17:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
17 | for(int i = 0; i < dest.size(); i += 2)
| ~~^~~~~~~~~~~~~
doll.cpp:20:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
20 | for(int i = 1; i < dest.size(); i += 2)
| ~~^~~~~~~~~~~~~
doll.cpp:25:3: error: reference to 'left' is ambiguous
25 | left[switches] = createpath(destodd);
| ^~~~
In file included from /usr/include/c++/10/ios:42,
from /usr/include/c++/10/ostream:38,
from /usr/include/c++/10/iostream:39,
from doll.cpp:2:
/usr/include/c++/10/bits/ios_base.h:1006:3: note: candidates are: 'std::ios_base& std::left(std::ios_base&)'
1006 | left(ios_base& __base)
| ^~~~
doll.cpp:8:5: note: 'int left [200001]'
8 | int left[1 + nmax];
| ^~~~
doll.cpp:26:3: error: reference to 'right' is ambiguous
26 | right[switches] = createpath(desteven);
| ^~~~~
In file included from /usr/include/c++/10/ios:42,
from /usr/include/c++/10/ostream:38,
from /usr/include/c++/10/iostream:39,
from doll.cpp:2:
/usr/include/c++/10/bits/ios_base.h:1014:3: note: candidates are: 'std::ios_base& std::right(std::ios_base&)'
1014 | right(ios_base& __base)
| ^~~~~
doll.cpp:9:5: note: 'int right [200001]'
9 | int right[1 + nmax];
| ^~~~~
doll.cpp: In function 'void create_circuit(int, std::vector<int>)':
doll.cpp:40:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
40 | for(int i = 0; i < A.size(); i++)
| ~~^~~~~~~~~~
doll.cpp:48:16: error: reference to 'left' is ambiguous
48 | X[k - 1] = left[k];
| ^~~~
In file included from /usr/include/c++/10/ios:42,
from /usr/include/c++/10/ostream:38,
from /usr/include/c++/10/iostream:39,
from doll.cpp:2:
/usr/include/c++/10/bits/ios_base.h:1006:3: note: candidates are: 'std::ios_base& std::left(std::ios_base&)'
1006 | left(ios_base& __base)
| ^~~~
doll.cpp:8:5: note: 'int left [200001]'
8 | int left[1 + nmax];
| ^~~~
doll.cpp:49:16: error: reference to 'right' is ambiguous
49 | Y[k - 1] = right[k];
| ^~~~~
In file included from /usr/include/c++/10/ios:42,
from /usr/include/c++/10/ostream:38,
from /usr/include/c++/10/iostream:39,
from doll.cpp:2:
/usr/include/c++/10/bits/ios_base.h:1014:3: note: candidates are: 'std::ios_base& std::right(std::ios_base&)'
1014 | right(ios_base& __base)
| ^~~~~
doll.cpp:9:5: note: 'int right [200001]'
9 | int right[1 + nmax];
| ^~~~~
doll.cpp:33:7: warning: unused variable 'N' [-Wunused-variable]
33 | int N = A.size();
| ^