encoder.cpp:26:3: error: expected unqualified-id before 'for'
26 | for (int i=0;i<h;i++) {
| ^~~
encoder.cpp:26:16: error: 'i' does not name a type
26 | for (int i=0;i<h;i++) {
| ^
encoder.cpp:26:20: error: 'i' does not name a type
26 | for (int i=0;i<h;i++) {
| ^
encoder.cpp:35:1: error: expected declaration before '}' token
35 | }
| ^
decoder.cpp: In function 'void decode(int, int)':
decoder.cpp:9:11: error: 'decode_bit' was not declared in this scope; did you mean 'decode'?
9 | if (decode_bit()==1) nm+=(1<<t);
| ^~~~~~~~~~
| decode
decoder.cpp:12:7: error: 'hops' was not declared in this scope
12 | hops(i,j,nm);
| ^~~~