vision.cpp: In function 'void construct_network(int, int, int)':
vision.cpp:44:4: error: invalid use of non-static member function 'void std::vector<_Tp, _Alloc>::clear() [with _Tp = int; _Alloc = std::allocator<int>]'
V.clear;
~~^~~~~
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:1247:7: note: declared here
clear() _GLIBCXX_NOEXCEPT
^~~~~
vision.cpp:49:2: error: 'ans1' was not declared in this scope
ans1=getans(H,W,K);
^~~~
vision.cpp:49:2: note: suggested alternative: 'abs'
ans1=getans(H,W,K);
^~~~
abs
vision.cpp:50:5: error: 'k' was not declared in this scope
if(k<=W+H-2){
^
vision.cpp:52:2: error: 'ans2' was not declared in this scope
ans2=getans(H,W,K+1);
^~~~
vision.cpp:52:2: note: suggested alternative: 'abs'
ans2=getans(H,W,K+1);
^~~~
abs