bodyguards.cpp: In function 'int main()':
bodyguards.cpp:41:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < cv.size(); i++) {
~~^~~~~~~~~~~
bodyguards.cpp:46:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 1; i < cv.size(); i++) cv[i].se += cv[i - 1].se;
~~^~~~~~~~~~~
bodyguards.cpp:48:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 1; i < rv.size(); i++) {
~~^~~~~~~~~~~
bodyguards.cpp:62:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 1; i < rv.size(); i++) {
~~^~~~~~~~~~~
bodyguards.cpp:21:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &R);
~~~~~^~~~~~~~~~
bodyguards.cpp:23:34: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for(int i = 0; i < R; i++) scanf("%lld%lld", &rv[i].fi, &rv[i].se);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
bodyguards.cpp:24:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &C);
~~~~~^~~~~~~~~~
bodyguards.cpp:26:34: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for(int i = 0; i < C; i++) scanf("%lld%lld", &cv[i].fi, &cv[i].se);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~