coins.cpp: In function 'std::vector<int> coin_flips(std::vector<int>, int)':
coins.cpp:8:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
8 | for(int i = 0; i < b.size(); i++) if (b[i]) sum += i;
| ~~^~~~~~~~~~
coins.cpp:10:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
10 | for (int i = 0; i < b.size(); i++) {
| ~~^~~~~~~~~~
coins.cpp:14:27: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
14 | if (sum % b.size() == c) return {i};
| ~~~~~~~~~~~~~~~^~~~
coins.cpp: In function 'int find_coin(std::vector<int>)':
coins.cpp:22:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
22 | for(int i = 0; i < b.size(); i++) if (b[i]) ret += i;
| ~~^~~~~~~~~~