encoder.cpp: In function 'void encode(int, int, int, int*, int*)':
encoder.cpp:139:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
139 | for(int i=0;i<s.size();i++)encode_bit((int)s[i]-'0');
| ~^~~~~~~~~
decoder.cpp: In function 'void dfs(int)':
decoder.cpp:14:13: error: 'g' was not declared in this scope
14 | for(auto v:g[u])
| ^
decoder.cpp:18:4: error: 'dist' was not declared in this scope
18 | dist[v][j]=dist[u][j]+f[v][j];
| ^~~~
decoder.cpp:18:26: error: 'f' was not declared in this scope
18 | dist[v][j]=dist[u][j]+f[v][j];
| ^
decoder.cpp: In function 'void decode(int, int)':
decoder.cpp:25:9: error: 'dist' was not declared in this scope
25 | memset(dist,0,sizeof(dist));
| ^~~~
decoder.cpp:26:9: error: 'f' was not declared in this scope
26 | memset(f,0,sizeof(f));
| ^
decoder.cpp:27:9: error: 'par' was not declared in this scope
27 | memset(par,0,sizeof(par));
| ^~~
decoder.cpp:28:23: error: 'g' was not declared in this scope
28 | for(int i=0;i<nv;i++)g[i].clear();
| ^
decoder.cpp:38:3: error: 'g' was not declared in this scope
38 | g[p].push_back(i);
| ^