encoder.cpp: In function 'void encode(int, int*)':
encoder.cpp:27:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
27 | for(int i = 0; i <v.size(); i+=2){
| ~~^~~~~~~~~
encoder.cpp:28:21: warning: unused variable 'times' [-Wunused-variable]
28 | int times = v[i]*2+v[i+1];
| ^~~~~
encoder.cpp:32:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
32 | for(int i = 0; i <v.size(); i+=2){
| ~~^~~~~~~~~
decoder.cpp: In function 'int vectoint(std::vector<int>)':
decoder.cpp:9:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
9 | for(int i = 0; i < a.size(); i++){
| ~~^~~~~~~~~~
decoder.cpp: In function 'void decode(int, int, int*)':
decoder.cpp:41:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
41 | for(int i = 0; i < ans.size(); i++){
| ~~^~~~~~~~~~~~
decoder.cpp:44:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
44 | for(int i = 0; i < ans.size(); i+=8){
| ~~^~~~~~~~~~~~