vision.cpp: In function 'void construct_network(int, int, int)':
vision.cpp:30:31: error: could not convert 'cur' from 'int' to 'std::vector<int>'
diag[i]=add_or(cur,diag[i+1]);
^
vision.cpp:34:22: error: could not convert 'diag[(i + k)]' from 'int' to 'std::vector<int>'
a=add_and(diag[i+k],cur);
~~~~~~~~^
vision.cpp:39:23: error: could not convert 'diag[((i + k) + 1)]' from 'int' to 'std::vector<int>'
b=add_and(diag[i+k+1],cur);
~~~~~~~~~~^
vision.cpp:41:26: error: could not convert 'b' from 'int' to 'std::vector<int>'
V.push_back(add_xor(b,a));
^
vision.cpp:52:32: error: could not convert 'cur' from 'int' to 'std::vector<int>'
d[i]=add_or(cur,d[max(0,i-1)]);
^
vision.cpp:56:19: error: could not convert 'd[(i - k)]' from 'int' to 'std::vector<int>'
a=add_and(d[i-k],cur);
~~~~~^
vision.cpp:61:20: error: could not convert 'd[((i - k) - 1)]' from 'int' to 'std::vector<int>'
b=add_and(d[i-k-1],cur);
~~~~~~~^
vision.cpp:63:26: error: could not convert 'b' from 'int' to 'std::vector<int>'
V.push_back(add_xor(b,a));
^