encoder.cpp:2:1: error: 'string' does not name a type
2 | string bi(int x){
| ^~~~~~
encoder.cpp: In function 'void encode(int, int, int, int*, int*)':
encoder.cpp:19:4: error: 'string' was not declared in this scope
19 | string s;
| ^~~~~~
encoder.cpp:44:7: error: 's' was not declared in this scope
44 | s = bi(gr[i][j]);
| ^
encoder.cpp:44:11: error: 'bi' was not declared in this scope; did you mean 'i'?
44 | s = bi(gr[i][j]);
| ^~
| i
encoder.cpp:46:9: error: 'encode_bit' was not declared in this scope; did you mean 'encode'?
46 | encode_bit(s[k] - '0');
| ^~~~~~~~~~
| encode
decoder.cpp: In function 'void decode(int, int)':
decoder.cpp:7:27: error: 'decode_bit' was not declared in this scope; did you mean 'decode'?
7 | rechner += k *decode_bit();
| ^~~~~~~~~~
| decode
decoder.cpp:9:10: error: 'hops' was not declared in this scope
9 | hops(i , j , rechner);
| ^~~~