encoder.cpp: In function 'void rek(int, int)':
encoder.cpp:20:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
20 | for(int i = 0; i < v[x].size(); i++){
| ~~^~~~~~~~~~~~~
encoder.cpp:25:14: error: 'h' was not declared in this scope
25 | rek(x2, x, h);
| ^
encoder.cpp: In function 'void encode(int, int, int, int*, int*)':
encoder.cpp:45:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
45 | for(int j = 0; j < v[x].size(); j++){
| ~~^~~~~~~~~~~~~
encoder.cpp:63:14: error: too many arguments to function 'void rek(int, int)'
63 | rek(0, -1, h);
| ^
encoder.cpp:16:6: note: declared here
16 | void rek(int x, int p){
| ^~~