message.cpp: In function 'std::vector<int> get_known_allies()':
message.cpp:20:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<bool> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
20 | for(int j=0;j<cur_bits.size();j++)
| ~^~~~~~~~~~~~~~~~
message.cpp: In function 'bool get_bit(std::vector<bool>&, int)':
message.cpp:31:11: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<bool>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
31 | if(ind<msg.size()) return msg[ind];
| ~~~^~~~~~~~~~~
message.cpp: In function 'void send_message(std::vector<bool>, std::vector<bool>)':
message.cpp:52:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
52 | for(int j=1;j<allies.size();j++) {
| ~^~~~~~~~~~~~~~
message.cpp:60:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<bool>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
60 | for(int i=0;i<positions.size()-1;i++)
| ~^~~~~~~~~~~~~~~~~~~
message.cpp:64:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
64 | for(int j=1;j<allies.size();j++) {
| ~^~~~~~~~~~~~~~
message.cpp:69:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<bool>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
69 | while(msg_pos<message.size()+10)
| ~~~~~~~^~~~~~~~~~~~~~~~~~
message.cpp:72:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
72 | for(int j=0;j<allies.size();j++) {
| ~^~~~~~~~~~~~~~
message.cpp: In function 'std::vector<bool> receive_message(std::vector<std::vector<bool> >)':
message.cpp:90:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<bool> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
90 | for(int i=0;i<received_bits.size();i++)
| ~^~~~~~~~~~~~~~~~~~~~~
message.cpp:110:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<bool> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
110 | for(int i=0;i<received_bits.size();i++)
| ~^~~~~~~~~~~~~~~~~~~~~
message.cpp:112:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
112 | for(int j=(i<st?1:0);j<allies.size();j++)
| ~^~~~~~~~~~~~~~
In file included from /usr/include/c++/10/cassert:44,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:33,
from message.cpp:5:
message.cpp:120:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
120 | assert(10+msglen <= msg.size());
| ~~~~~~~~~~^~~~~~~~~~~~~