doll.cpp: In function 'void create_circuit(int, std::vector<int>)':
doll.cpp:6:9: error: 'vector' was not declared in this scope
6 | vector<int> C(M + 1);
| ^~~~~~
doll.cpp:6:9: note: suggested alternatives:
In file included from /usr/include/c++/13/vector:66,
from /usr/include/c++/13/functional:64,
from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:53,
from doll.cpp:1:
/usr/include/c++/13/bits/stl_vector.h:428:11: note: 'std::vector'
428 | class vector : protected _Vector_base<_Tp, _Alloc>
| ^~~~~~
/usr/include/c++/13/vector:86:13: note: 'std::pmr::vector'
86 | using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
| ^~~~~~
doll.cpp:6:16: error: expected primary-expression before 'int'
6 | vector<int> C(M + 1);
| ^~~
doll.cpp:8:17: error: 'C' was not declared in this scope
8 | C[i] = A[i];
| ^
doll.cpp:10:9: error: 'C' was not declared in this scope
10 | C[M] = 0;
| ^
doll.cpp:11:16: error: expected primary-expression before 'int'
11 | vector<int> X, Y;
| ^~~
doll.cpp:12:19: error: 'X' was not declared in this scope
12 | answer(C, X, Y);
| ^
doll.cpp:12:22: error: 'Y' was not declared in this scope
12 | answer(C, X, Y);
| ^