encoder.cpp: In function 'void encode(int, int, int, int*, int*)':
encoder.cpp:37:32: error: 'encode_bit' was not declared in this scope; did you mean 'encode'?
37 | if(dist[i][j] & (1 << k)) encode_bit(1);
| ^~~~~~~~~~
| encode
encoder.cpp:38:11: error: 'encode_bit' was not declared in this scope; did you mean 'encode'?
38 | else encode_bit(0);
| ^~~~~~~~~~
| encode
decoder.cpp: In function 'void decode(int, int)':
decoder.cpp:12:9: error: 'decode_bit' was not declared in this scope; did you mean 'decode'?
12 | if(decode_bit()) ans += (1 << k);
| ^~~~~~~~~~
| decode
decoder.cpp:14:3: error: 'hops' was not declared in this scope
14 | hops(i, j, ans);
| ^~~~