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:36: warning: overflow in implicit constant conversion [-Woverflow]
memset(ndp, INF, sizeof ndp);
^
bulves.cpp:53:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j = 0; j < bb.size(); ++j)
~~^~~~~~~~~~~
bulves.cpp:61: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:68:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
~~~~~^~~~~~~~~~
bulves.cpp:71: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]);
~~~~~^~~~~~~~~~~~~~~~~~~~~~