encoder.cpp: In function 'void bfs(int)':
encoder.cpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < a[x].size(); ++i)
~~^~~~~~~~~~~~~
encoder.cpp: In function 'void funkc()':
encoder.cpp:45:2: error: 'encode_bit' was not declared in this scope
encode_bit(1);
^~~~~~~~~~
encoder.cpp:45:2: note: suggested alternative: 'encode'
encode_bit(1);
^~~~~~~~~~
encode
encoder.cpp: In function 'void encode(int, int, int, int*, int*)':
encoder.cpp:74:6: error: 'encode_bit' was not declared in this scope
encode_bit(0);
^~~~~~~~~~
encoder.cpp:74:6: note: suggested alternative: 'encode'
encode_bit(0);
^~~~~~~~~~
encode
encoder.cpp:75:5: error: 'encode_bit' was not declared in this scope
encode_bit(0);
^~~~~~~~~~
encoder.cpp:75:5: note: suggested alternative: 'encode'
encode_bit(0);
^~~~~~~~~~
encode
encoder.cpp:83:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int k = 0; k < (10 - v.size()); ++k)
~~^~~~~~~~~~~~~~~~~
encoder.cpp:85:5: error: 'encode_bit' was not declared in this scope
encode_bit(0);
^~~~~~~~~~
encoder.cpp:85:5: note: suggested alternative: 'encode'
encode_bit(0);
^~~~~~~~~~
encode
encoder.cpp:89:5: error: 'encode_bit' was not declared in this scope
encode_bit(v[k]);
^~~~~~~~~~
encoder.cpp:89:5: note: suggested alternative: 'encode'
encode_bit(v[k]);
^~~~~~~~~~
encode
decoder.cpp: In function 'void decode(int, int)':
decoder.cpp:21:8: error: 'decode_bit' was not declared in this scope
n += decode_bit();
^~~~~~~~~~
decoder.cpp:21:8: note: suggested alternative: 'decode'
n += decode_bit();
^~~~~~~~~~
decode
decoder.cpp:24:4: error: 'hops' was not declared in this scope
hops(v, u, n);
^~~~