vision.cpp: In function 'void init()':
vision.cpp:80:5: error: 'vector' was not declared in this scope
vector <int> all;
^~~~~~
vision.cpp:80:5: note: suggested alternative:
In file included from /usr/include/c++/7/vector:64:0,
from vision.h:5,
from vision.cpp:1:
/usr/include/c++/7/bits/stl_vector.h:216:11: note: 'std::vector'
class vector : protected _Vector_base<_Tp, _Alloc>
^~~~~~
vision.cpp:80:13: error: expected primary-expression before 'int'
vector <int> all;
^~~
vision.cpp:85:13: error: 'all' was not declared in this scope
all.push_back(cell2Pos(i, j));
^~~
vision.cpp:85:13: note: suggested alternative: 'a64l'
all.push_back(cell2Pos(i, j));
^~~
a64l
vision.cpp:89:20: error: 'all' was not declared in this scope
zero = add_and(all);
^~~
vision.cpp:89:20: note: suggested alternative: 'a64l'
zero = add_and(all);
^~~
a64l
vision.cpp: At global scope:
vision.cpp:93:16: error: 'vector' was not declared in this scope
Number getDiff(vector <int> &v)
^~~~~~
vision.cpp:93:16: note: suggested alternative:
In file included from /usr/include/c++/7/vector:64:0,
from vision.h:5,
from vision.cpp:1:
/usr/include/c++/7/bits/stl_vector.h:216:11: note: 'std::vector'
class vector : protected _Vector_base<_Tp, _Alloc>
^~~~~~
vision.cpp:93:24: error: expected primary-expression before 'int'
Number getDiff(vector <int> &v)
^~~
vision.cpp:94:1: error: expected ',' or ';' before '{' token
{
^
vision.cpp: In function 'void construct_network(int, int, int)':
vision.cpp:138:5: error: 'vector' was not declared in this scope
vector <int> v;
^~~~~~
vision.cpp:138:5: note: suggested alternative:
In file included from /usr/include/c++/7/vector:64:0,
from vision.h:5,
from vision.cpp:1:
/usr/include/c++/7/bits/stl_vector.h:216:11: note: 'std::vector'
class vector : protected _Vector_base<_Tp, _Alloc>
^~~~~~
vision.cpp:138:13: error: expected primary-expression before 'int'
vector <int> v;
^~~
vision.cpp:141:17: error: expected primary-expression before 'int'
vector <int> ask;
^~~
vision.cpp:142:32: error: 'ask' was not declared in this scope
for(int j = 0;j<m;j++) ask.push_back(cell2Pos(i, j));
^~~
vision.cpp:144:9: error: 'v' was not declared in this scope
v.push_back(add_xor(ask));
^
vision.cpp:144:29: error: 'ask' was not declared in this scope
v.push_back(add_xor(ask));
^~~
vision.cpp:146:24: error: 'v' was not declared in this scope
Number A = getDiff(v);
^
vision.cpp:151:17: error: expected primary-expression before 'int'
vector <int> ask;
^~~
vision.cpp:152:32: error: 'ask' was not declared in this scope
for(int i = 0;i<n;i++) ask.push_back(cell2Pos(i, j));
^~~
vision.cpp:154:29: error: 'ask' was not declared in this scope
v.push_back(add_xor(ask));
^~~
vision.cpp:159:13: error: expected primary-expression before 'int'
vector <int> requirements;
^~~
vision.cpp:163:9: error: 'requirements' was not declared in this scope
requirements.push_back(add_not(add_xor({val, sum[bit]})));
^~~~~~~~~~~~
vision.cpp:166:13: error: 'requirements' was not declared in this scope
add_and(requirements);
^~~~~~~~~~~~