/in/foo.cc: In function 'std::vector<int> MergeSubs(const std::vector<int>&)':
/in/foo.cc:7:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < arr.size(); i++) {
~~^~~~~~~~~~~~
/in/foo.cc:9:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (i == arr.size() - 1 || arr[i] >= arr[i + 1]) {
~~^~~~~~~~~~~~~~~~~
/in/foo.cc:17:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < subs.size() - 1; i++) {
~~^~~~~~~~~~~~~~~~~
/in/foo.cc:22:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < subs.size(); i++) {
~~^~~~~~~~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:41:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < result1.size(); i++) {
~~^~~~~~~~~~~~~~~~
/in/foo.cc:45:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < result2.size(); i++) {
~~^~~~~~~~~~~~~~~~