message.cpp: In function 'void send(int&, std::vector<int>&, std::vector<bool>, bool)':
message.cpp:23:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
23 | for(int i=0;i<kn.size();i++) {
| ~^~~~~~~~~~
message.cpp:27:33: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<bool>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
27 | cur[kn[i]] = (ind+i < sent.size() ? sent[ind+i] : 0);
| ~~~~~~^~~~~~~~~~~~~
message.cpp: In function 'void send_message(std::vector<bool>, std::vector<bool>)':
message.cpp:38:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<bool>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
38 | for(int i=0;i<positions.size();i++)
| ~^~~~~~~~~~~~~~~~~
message.cpp:42:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<bool>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
42 | for(int i=0;i<message.size();i++) sent.push_back(message[i]);
| ~^~~~~~~~~~~~~~~
message.cpp:45:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<bool>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
45 | while(ind<sent.size()) {
| ~~~^~~~~~~~~~~~
message.cpp:52:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<bool>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
52 | while(ind<sent.size()) {
| ~~~^~~~~~~~~~~~
message.cpp: In function 'void receive(std::vector<int>&, std::vector<bool>&, std::vector<bool>, bool)':
message.cpp:74:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
74 | for(int i=0;i<kn.size();i++) {
| ~^~~~~~~~~~
message.cpp: In function 'std::vector<bool> receive_message(std::vector<std::vector<bool> >)':
message.cpp:89:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<bool> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
89 | for(int i=1;i<received_bits.size();i++) receive(kn, msg, received_bits[i], rev);
| ~^~~~~~~~~~~~~~~~~~~~~
message.cpp:93:23: 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=POS+10;i<msg.size();i++) rel.push_back(msg[i]);
| ~^~~~~~~~~~~
message.cpp:94:22: warning: comparison of integer expressions of different signedness: 'std::vector<bool>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
94 | while(rel.size() > len) rel.pop_back();
| ~~~~~~~~~~~^~~~~