vision.cpp: In function 'int ans()':
vision.cpp:7:9: error: 'add_or' was not declared in this scope
return add_or(V);
^~~~~~
vision.cpp:7:9: note: suggested alternative: 'rand_r'
return add_or(V);
^~~~~~
rand_r
vision.cpp: In function 'void construct_network(int, int, int)':
vision.cpp:21:17: error: 'add_or' was not declared in this scope
cur.push_back(add_or(Dr[i]));
^~~~~~
vision.cpp:21:17: note: suggested alternative: 'rand_r'
cur.push_back(add_or(Dr[i]));
^~~~~~
rand_r
vision.cpp:24:11: error: 'add_and' was not declared in this scope
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:38:15: error: 'add_xor' was not declared in this scope
V.push_back(add_xor(b,a));
^~~~~~~
vision.cpp:44:17: error: 'add_or' was not declared in this scope
cur.push_back(add_or(Dl[i]));
^~~~~~
vision.cpp:44:17: note: suggested alternative: 'rand_r'
cur.push_back(add_or(Dl[i]));
^~~~~~
rand_r
vision.cpp:47:10: error: 'add_and' was not declared in this scope
dia[i]=add_and(add_or(cur),add_or(p));
^~~~~~~
vision.cpp:61:15: error: 'add_xor' was not declared in this scope
V.push_back(add_xor(b,a));
^~~~~~~