vision.cpp: In function 'void construct_network(int, int, int)':
vision.cpp:21:35: error: could not convert 'a.std::vector<int>::operator[](((std::vector<int>::size_type)i))' from '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} to 'std::vector<int>'
21 | a2[i] = add_and(a[i], a[i + 1]);
| ^
| |
| __gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}
vision.cpp:22:35: error: could not convert 'b.std::vector<int>::operator[](((std::vector<int>::size_type)i))' from '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} to 'std::vector<int>'
22 | b2[i] = add_and(b[i], b[i + 1]);
| ^
| |
| __gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}
vision.cpp:26:11: error: could not convert 'X' from 'int' to 'std::vector<int>'
26 | add_and(X, Y);
| ^
| |
| int