message.cpp: In function 'void send_message(std::vector<bool>, std::vector<bool>)':
message.cpp:22:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<bool>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
22 | for(int i=0;i<positions.size();i++) {
| ~^~~~~~~~~~~~~~~~~
message.cpp:27:18: 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<npos.size()/2;i++)
| ~^~~~~~~~~~~~~~
message.cpp:39:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<bool>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
39 | for(int i=0;i<message.size();i++) sent_bits.push_back(message[i]);
| ~^~~~~~~~~~~~~~~
message.cpp: In function 'void add_pos(std::vector<bool>&, int, int)':
message.cpp:54:18: warning: comparison of integer expressions of different signedness: 'std::vector<bool>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
54 | if(pos.size()==ind) {
| ~~~~~~~~~~^~~~~
message.cpp:59:18: warning: comparison of integer expressions of different signedness: 'std::vector<bool>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
59 | if(pos.size()==ind) {
| ~~~~~~~~~~^~~~~
message.cpp: In function 'std::vector<bool> receive_message(std::vector<std::vector<bool> >)':
message.cpp:86:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<bool> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
86 | for(int i=5+14;i<received_bits.size();i++) {
| ~^~~~~~~~~~~~~~~~~~~~~
message.cpp:93:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<bool>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
93 | for(int i=5;i<sent_bits.size();i++) res.push_back(sent_bits[i]);
| ~^~~~~~~~~~~~~~~~~