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: 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++){
| ~~^~~~~~~~~~~~~
decoder.cpp: In function 'void rek(int)':
decoder.cpp:15:26: error: request for member 'size' in 'v.std::vector<int>::operator[](((std::vector<int>::size_type)x))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
15 | for(int i = 0; i < v[x].size(); i++){
| ^~~~
decoder.cpp:16:16: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}[int]' for array subscript
16 | int x2 = v[x][i];
| ^
decoder.cpp:18:22: error: 'h' was not declared in this scope
18 | for(int j = 0; j < h; j++){
| ^
decoder.cpp: In function 'void decode(int, int)':
decoder.cpp:40:8: error: request for member 'push_back' in 'v.std::vector<int>::operator[](((std::vector<int>::size_type)p))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
40 | v[p].push_back(i);
| ^~~~~~~~~