vision.cpp: In function 'std::vector<int> dist(std::vector<int>)':
vision.cpp:49:33: error: could not convert 'l.std::vector<int>::operator[](0)' from '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} to 'std::vector<int>'
49 | diff[0] = add_xor(l[0], r[0]);
| ^
| |
| __gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}
vision.cpp:50:35: error: could not convert 'l.std::vector<int>::operator[](0)' from '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} to 'std::vector<int>'
50 | int carry = add_and(l[0], r[0]);
| ^
| |
| __gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}
vision.cpp: In function 'void construct_network(int, int, int)':
vision.cpp:81:35: error: could not convert 'r.std::vector<int>::operator[](0)' from '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} to 'std::vector<int>'
81 | int carry = add_and(r[0], c[0]);
| ^
| |
| __gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}