bulves.cpp: In function 'void solv3()':
bulves.cpp:48:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int j = 1; j <= bb.size(); ++j)
                     ~~^~~~~~~~~~~~
bulves.cpp:50:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int i = 0; i < aa.size(); ++i)
                     ~~^~~~~~~~~~~
bulves.cpp:52:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (int j = 0; j <= bb.size(); ++j)
                         ~~^~~~~~~~~~~~
bulves.cpp:54:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (int j = 0; j <= bb.size(); ++j)
                         ~~^~~~~~~~~~~~
bulves.cpp:56:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             if (j + 1 <= bb.size())
                 ~~~~~~^~~~~~~~~~~~
bulves.cpp:58:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             if (j + 1 <= bb.size())
                 ~~~~~~^~~~~~~~~~~~
bulves.cpp:61:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (int j = 0; j <= bb.size(); ++j)
                         ~~^~~~~~~~~~~~
bulves.cpp:65:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int j = 0; j <= bb.size(); ++j)
                     ~~^~~~~~~~~~~~
bulves.cpp: In function 'int main()':
bulves.cpp:72:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d", &n);
     ~~~~~^~~~~~~~~~
bulves.cpp:75:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
         scanf("%d%d", &a[i], &b[i]);
         ~~~~~^~~~~~~~~~~~~~~~~~~~~~