encoder.cpp:10:1: error: 'contst' does not name a type
10 | contst int MAX_N=1e3+5 ;
| ^~~~~~
encoder.cpp:11:14: error: 'MAX_N' was not declared in this scope
11 | vector<int>v[MAX_N] ;
| ^~~~~
encoder.cpp: In function 'int dfs(int, int, int)':
encoder.cpp:15:15: error: 'v' was not declared in this scope
15 | for(int i:v[x]){
| ^
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
encoder.cpp:27:7: error: 'v' was not declared in this scope
27 | v[v1[i]].push_back(v2[i]) ;
| ^
decoder.cpp: In function 'void decode(int, int)':
decoder.cpp:5:15: 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);
| ^~~~