encoder.cpp: In function 'void encode(int, int, int, int*, int*)':
encoder.cpp:50:42: error: 'encode_bit' was not declared in this scope; did you mean 'encode'?
50 | if(dis[i][j] & (1 << k)) encode_bit(1);
| ^~~~~~~~~~
| encode
encoder.cpp:51:22: error: 'encode_bit' was not declared in this scope; did you mean 'encode'?
51 | else encode_bit(0);
| ^~~~~~~~~~
| encode
decoder.cpp: In function 'int decode(int, int)':
decoder.cpp:21:36: error: 'decode_bit' was not declared in this scope; did you mean 'decode'?
21 | dis[i][j] += (1 << decode_bit());
| ^~~~~~~~~~
| decode
decoder.cpp:28:13: error: 'hops' was not declared in this scope
28 | hops(j,i,dis[i][j]);
| ^~~~
decoder.cpp:31:1: warning: no return statement in function returning non-void [-Wreturn-type]
31 | }
| ^