vision.cpp: In function 'void construct_network(int, int, int)':
vision.cpp:39:54: error: could not convert 'ind.std::map<int, int>::operator[](i)' from 'std::map<int, int>::mapped_type' {aka 'int'} to 'std::vector<int>'
39 | nx.push_back({add_and(ind[i],ind[i+k])});
| ~~~~~~~^~~~~~~~~~~~~~~~~
| |
| std::map<int, int>::mapped_type {aka int}
vision.cpp:39:45: error: no matching function for call to 'std::vector<int>::push_back(<brace-enclosed initializer list>)'
39 | nx.push_back({add_and(ind[i],ind[i+k])});
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/vector:67,
from vision.h:5,
from vision.cpp:1:
/usr/include/c++/11/bits/stl_vector.h:1187:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::value_type = int]'
1187 | push_back(const value_type& __x)
| ^~~~~~~~~
/usr/include/c++/11/bits/stl_vector.h:1187:35: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const value_type&' {aka 'const int&'}
1187 | push_back(const value_type& __x)
| ~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/11/bits/stl_vector.h:1203:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::value_type = int]'
1203 | push_back(value_type&& __x)
| ^~~~~~~~~
/usr/include/c++/11/bits/stl_vector.h:1203:30: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::vector<int>::value_type&&' {aka 'int&&'}
1203 | push_back(value_type&& __x)
| ~~~~~~~~~~~~~^~~
vision.cpp:56:54: error: could not convert 'ind1.std::map<int, int>::operator[](i)' from 'std::map<int, int>::mapped_type' {aka 'int'} to 'std::vector<int>'
56 | nx.push_back({add_and(ind1[i],ind1[i+k])}); continue;
| ~~~~~~~^~~~~~~~~~~~~~~~~~~
| |
| std::map<int, int>::mapped_type {aka int}
vision.cpp:56:45: error: no matching function for call to 'std::vector<int>::push_back(<brace-enclosed initializer list>)'
56 | nx.push_back({add_and(ind1[i],ind1[i+k])}); continue;
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/vector:67,
from vision.h:5,
from vision.cpp:1:
/usr/include/c++/11/bits/stl_vector.h:1187:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::value_type = int]'
1187 | push_back(const value_type& __x)
| ^~~~~~~~~
/usr/include/c++/11/bits/stl_vector.h:1187:35: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const value_type&' {aka 'const int&'}
1187 | push_back(const value_type& __x)
| ~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/11/bits/stl_vector.h:1203:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::value_type = int]'
1203 | push_back(value_type&& __x)
| ^~~~~~~~~
/usr/include/c++/11/bits/stl_vector.h:1203:30: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::vector<int>::value_type&&' {aka 'int&&'}
1203 | push_back(value_type&& __x)
| ~~~~~~~~~~~~~^~~