minerals.cpp: In function 'void parallel_bs(std::vector<int>&, int, int)':
minerals.cpp:59:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
59 | for (_ = 0; _ < w.size(); ++_){
| ~~^~~~~~~~~~
minerals.cpp:66:25: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
66 | if (left.size() == r - mid || right.size() == mid - l + 1) break;
| ~~~~~~~~~~~~^~~~~~~~~~
minerals.cpp:66:52: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
66 | if (left.size() == r - mid || right.size() == mid - l + 1) break;
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~
minerals.cpp:70:21: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
70 | if (left.size() == r - mid){
| ~~~~~~~~~~~~^~~~~~~~~~
minerals.cpp:71:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
71 | for (; _ < w.size(); ++_){
| ~~^~~~~~~~~~
minerals.cpp:76:27: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
76 | else if (right.size() == mid - l + 1){
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~
minerals.cpp:77:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
77 | for (; _ < w.size(); ++_){
| ~~^~~~~~~~~~
In file included from /usr/include/c++/10/cassert:44,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:33,
from minerals.cpp:1:
minerals.cpp:84:25: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
84 | assert(right.size() == r - mid);
| ~~~~~~~~~~~~~^~~~~~~~~~