encoder.cpp: In function 'int dfs(int, int, int)':
encoder.cpp:21:1: warning: no return statement in function returning non-void [-Wreturn-type]
21 | }
| ^
encoder.cpp: In function 'void encode(int, int, int, int*, int*)':
encoder.cpp:24:3: error: 'encode_bit' was not declared in this scope; did you mean 'encode'?
24 | encode_bit(1);
| ^~~~~~~~~~
| encode
decoder.cpp: In function 'void decode(int, int)':
decoder.cpp:5:14: error: 'decode_bit' was not declared in this scope; did you mean 'decode'?
5 | x=decode_bit() ;
| ^~~~~~~~~~
| decode
decoder.cpp:10:13: error: 'hops' was not declared in this scope
10 | hops(j,i,r);
| ^~~~