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
encoder.cpp: In function 'void decode(int, int)':
encoder.cpp:104:8: error: 'decode_bit' was not declared in this scope
n += decode_bit();
^~~~~~~~~~
encoder.cpp:104:8: note: suggested alternative: 'decode'
n += decode_bit();
^~~~~~~~~~
decode
encoder.cpp:107:4: error: 'hops' was not declared in this scope
hops(v, u, n);
^~~~
/tmp/cc4tWjBz.o: In function `main':
grader_decoder.c:(.text.startup+0xe6): undefined reference to `decode(int, int)'
collect2: error: ld returned 1 exit status