vision.cpp: In function 'void construct_network(int, int, int)':
vision.cpp:24:25: error: could not convert 'add_or(std::vector<int>(cur))' from 'int' to 'std::vector<int>'
diag[i]=add_and(add_or(cur),add_or(p));
~~~~~~^~~~~
vision.cpp:25:5: error: no match for 'operator=' (operand types are 'std::vector<int>' and 'int')
b=0;
^
In file included from /usr/include/c++/7/vector:69:0,
from /usr/include/c++/7/queue:61,
from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:86,
from vision.cpp:1:
/usr/include/c++/7/bits/vector.tcc:179:5: note: candidate: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = int; _Alloc = std::allocator<int>]
vector<_Tp, _Alloc>::
^~~~~~~~~~~~~~~~~~~
/usr/include/c++/7/bits/vector.tcc:179:5: note: no known conversion for argument 1 from 'int' to 'const std::vector<int>&'
In file included from /usr/include/c++/7/vector:64:0,
from /usr/include/c++/7/queue:61,
from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:86,
from vision.cpp:1:
/usr/include/c++/7/bits/stl_vector.h:461:7: note: candidate: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::vector<_Tp, _Alloc>&&) [with _Tp = int; _Alloc = std::allocator<int>]
operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
^~~~~~~~
/usr/include/c++/7/bits/stl_vector.h:461:7: note: no known conversion for argument 1 from 'int' to 'std::vector<int>&&'
/usr/include/c++/7/bits/stl_vector.h:482:7: note: candidate: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::initializer_list<_Tp>) [with _Tp = int; _Alloc = std::allocator<int>]
operator=(initializer_list<value_type> __l)
^~~~~~~~
/usr/include/c++/7/bits/stl_vector.h:482:7: note: no known conversion for argument 1 from 'int' to 'std::initializer_list<int>'
vision.cpp:29:22: error: could not convert 'diag[(i + k)]' from 'int' to 'std::vector<int>'
a=add_and(diag[i+k],add_or(cur));
~~~~~~~~^
vision.cpp:36:27: error: too many arguments to function 'int add_and(std::vector<int>)'
b=add_and(p,add_and(cur));
^
In file included from vision.cpp:4:0:
vision.h:10:5: note: declared here
int add_and(std::vector<int> Ns);
^~~~~~~
vision.cpp:36:27: error: no match for 'operator=' (operand types are 'std::vector<int>' and 'int')
b=add_and(p,add_and(cur));
^
In file included from /usr/include/c++/7/vector:69:0,
from /usr/include/c++/7/queue:61,
from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:86,
from vision.cpp:1:
/usr/include/c++/7/bits/vector.tcc:179:5: note: candidate: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = int; _Alloc = std::allocator<int>]
vector<_Tp, _Alloc>::
^~~~~~~~~~~~~~~~~~~
/usr/include/c++/7/bits/vector.tcc:179:5: note: no known conversion for argument 1 from 'int' to 'const std::vector<int>&'
In file included from /usr/include/c++/7/vector:64:0,
from /usr/include/c++/7/queue:61,
from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:86,
from vision.cpp:1:
/usr/include/c++/7/bits/stl_vector.h:461:7: note: candidate: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::vector<_Tp, _Alloc>&&) [with _Tp = int; _Alloc = std::allocator<int>]
operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
^~~~~~~~
/usr/include/c++/7/bits/stl_vector.h:461:7: note: no known conversion for argument 1 from 'int' to 'std::vector<int>&&'
/usr/include/c++/7/bits/stl_vector.h:482:7: note: candidate: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::initializer_list<_Tp>) [with _Tp = int; _Alloc = std::allocator<int>]
operator=(initializer_list<value_type> __l)
^~~~~~~~
/usr/include/c++/7/bits/stl_vector.h:482:7: note: no known conversion for argument 1 from 'int' to 'std::initializer_list<int>'
vision.cpp:38:26: error: too many arguments to function 'int add_xor(std::vector<int>)'
V.push_back(add_xor(b,a));
^
In file included from vision.cpp:4:0:
vision.h:14:5: note: declared here
int add_xor(std::vector<int> Ns);
^~~~~~~
vision.cpp:47:24: error: could not convert 'add_or(std::vector<int>(cur))' from 'int' to 'std::vector<int>'
dia[i]=add_and(add_or(cur),add_or(p));
~~~~~~^~~~~
vision.cpp:52:22: error: could not convert 'diag[(i - k)]' from 'int' to 'std::vector<int>'
a=add_and(diag[i-k],add_or(cur));
~~~~~~~~^
vision.cpp:59:27: error: too many arguments to function 'int add_and(std::vector<int>)'
b=add_and(p,add_and(cur));
^
In file included from vision.cpp:4:0:
vision.h:10:5: note: declared here
int add_and(std::vector<int> Ns);
^~~~~~~
vision.cpp:59:27: error: no match for 'operator=' (operand types are 'std::vector<int>' and 'int')
b=add_and(p,add_and(cur));
^
In file included from /usr/include/c++/7/vector:69:0,
from /usr/include/c++/7/queue:61,
from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:86,
from vision.cpp:1:
/usr/include/c++/7/bits/vector.tcc:179:5: note: candidate: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = int; _Alloc = std::allocator<int>]
vector<_Tp, _Alloc>::
^~~~~~~~~~~~~~~~~~~
/usr/include/c++/7/bits/vector.tcc:179:5: note: no known conversion for argument 1 from 'int' to 'const std::vector<int>&'
In file included from /usr/include/c++/7/vector:64:0,
from /usr/include/c++/7/queue:61,
from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:86,
from vision.cpp:1:
/usr/include/c++/7/bits/stl_vector.h:461:7: note: candidate: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::vector<_Tp, _Alloc>&&) [with _Tp = int; _Alloc = std::allocator<int>]
operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
^~~~~~~~
/usr/include/c++/7/bits/stl_vector.h:461:7: note: no known conversion for argument 1 from 'int' to 'std::vector<int>&&'
/usr/include/c++/7/bits/stl_vector.h:482:7: note: candidate: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::initializer_list<_Tp>) [with _Tp = int; _Alloc = std::allocator<int>]
operator=(initializer_list<value_type> __l)
^~~~~~~~
/usr/include/c++/7/bits/stl_vector.h:482:7: note: no known conversion for argument 1 from 'int' to 'std::initializer_list<int>'
vision.cpp:61:26: error: too many arguments to function 'int add_xor(std::vector<int>)'
V.push_back(add_xor(b,a));
^
In file included from vision.cpp:4:0:
vision.h:14:5: note: declared here
int add_xor(std::vector<int> Ns);
^~~~~~~