doll.cpp: In function 'void create_circuit(int, std::vector<int>)':
doll.cpp:5:9: error: 'vector' was not declared in this scope
5 | vector<int> C(M + 1);
| ^~~~~~
doll.cpp:5:9: note: suggested alternatives:
In file included from /usr/include/c++/13/vector:66,
from doll.h:3,
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:5:16: error: expected primary-expression before 'int'
5 | vector<int> C(M + 1);
| ^~~
doll.cpp:7:17: error: 'C' was not declared in this scope
7 | C[i] = A[i];
| ^
doll.cpp:9:9: error: 'C' was not declared in this scope
9 | C[M] = 0;
| ^
doll.cpp:10:16: error: expected primary-expression before 'int'
10 | vector<int> X, Y;
| ^~~
doll.cpp:11:19: error: 'X' was not declared in this scope
11 | answer(C, X, Y);
| ^
doll.cpp:11:22: error: 'Y' was not declared in this scope
11 | answer(C, X, Y);
| ^