doll.cpp: In function 'void create_circuit(int, std::vector<int>)':
doll.cpp:14:98: error: narrowing conversion of '-1.8e+1' from 'double' to 'int' [-Wnarrowing]
14 | vector <int> X = {-2, -4, -6, -8. -10, -12, -14, A[0], A[4], A[2], A[6], A[1], A[5], A[3], A[7]};
| ^
doll.cpp:15:65: error: request for member 'A' in 'A.std::vector<int>::operator[](12)', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
15 | vector <int> Y = {-3, -5, -7, -9, -11, -13, -15, A[8], A[12]. A[10]. A[14], A[9]. A[13], A[11], A[15]};
| ^
doll.cpp:15:85: error: request for member 'A' in 'A.std::vector<int>::operator[](9)', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
15 | vector <int> Y = {-3, -5, -7, -9, -11, -13, -15, A[8], A[12]. A[10]. A[14], A[9]. A[13], A[11], A[15]};
| ^
doll.cpp:15:104: error: could not convert '{-3, -5, -7, -9, -11, -13, -15, A.std::vector<int>::operator[](8), <expression error>, <expression error>, A.std::vector<int>::operator[](11), A.std::vector<int>::operator[](15)}' from '<brace-enclosed initializer list>' to 'std::vector<int>'
15 | vector <int> Y = {-3, -5, -7, -9, -11, -13, -15, A[8], A[12]. A[10]. A[14], A[9]. A[13], A[11], A[15]};
| ^
| |
| <brace-enclosed initializer list>