vision.cpp: In function 'void construct_network(int, int, int)':
vision.cpp:30:24: error: could not convert 'add_or(std::vector<int>(Dr[i]))' from 'int' to 'std::vector<int>'
diag[i]=add_or(add_or(Dr[i]),diag[i+1]);
~~~~~~^~~~~~~
vision.cpp:34:37: error: expected ')' before ';' token
a=add_and(diag[i+k],add_or(Dr[i]););
^
vision.cpp:34:38: error: expected primary-expression before ')' token
a=add_and(diag[i+k],add_or(Dr[i]););
^
vision.cpp:39:38: error: expected ')' before ';' token
b=add_and(diag[i+k+1],add_or(Dr[i]););
^
vision.cpp:38:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if(i+k<=w+h-2)
^~
vision.cpp:39:39: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
b=add_and(diag[i+k+1],add_or(Dr[i]););
^
vision.cpp:39:39: error: expected primary-expression before ')' token
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));
^