vision.cpp: In function 'void construct_network(int, int, int)':
vision.cpp:10:5: error: 'vector' was not declared in this scope
10 | vector<int>check;
| ^~~~~~
vision.cpp:10:5: note: suggested alternatives:
In file included from /usr/include/c++/11/vector:67,
from /usr/include/c++/11/functional:62,
from /usr/include/c++/11/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/11/algorithm:74,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
from vision.cpp:1:
/usr/include/c++/11/bits/stl_vector.h:389:11: note: 'std::vector'
389 | class vector : protected _Vector_base<_Tp, _Alloc>
| ^~~~~~
In file included from /usr/include/c++/11/functional:62,
from /usr/include/c++/11/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/11/algorithm:74,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
from vision.cpp:1:
/usr/include/c++/11/vector:86:13: note: 'std::pmr::vector'
86 | using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
| ^~~~~~
vision.cpp:10:12: error: expected primary-expression before 'int'
10 | vector<int>check;
| ^~~
vision.cpp:14:24: error: expected primary-expression before 'int'
14 | vector<int>x={i,j};
| ^~~
vision.cpp:15:25: error: 'x' was not declared in this scope
15 | add_and(x);
| ^
vision.cpp:15:17: error: 'add_and' was not declared in this scope
15 | add_and(x);
| ^~~~~~~
vision.cpp:16:17: error: 'check' was not declared in this scope
16 | check.push_back(h*w+cnt);
| ^~~~~
vision.cpp:21:12: error: 'check' was not declared in this scope
21 | add_or(check);
| ^~~~~
vision.cpp:21:5: error: 'add_or' was not declared in this scope
21 | add_or(check);
| ^~~~~~