bodyguards.cpp: In function 'int main()':
bodyguards.cpp:36:29: error: 'greater' was not declared in this scope
sort(rv.begin(), rv.end(), greater<pll>());
^~~~~~~
bodyguards.cpp:36:40: error: expected primary-expression before '>' token
sort(rv.begin(), rv.end(), greater<pll>());
^
bodyguards.cpp:36:42: error: expected primary-expression before ')' token
sort(rv.begin(), rv.end(), greater<pll>());
^
bodyguards.cpp:37:40: error: expected primary-expression before '>' token
sort(cv.begin(), cv.end(), greater<pll>());
^
bodyguards.cpp:37:42: error: expected primary-expression before ')' token
sort(cv.begin(), cv.end(), greater<pll>());
^
bodyguards.cpp:40:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < cv.size(); i++) {
~~^~~~~~~~~~~
bodyguards.cpp:45: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:47:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 1; i < rv.size(); i++) {
~~^~~~~~~~~~~
bodyguards.cpp:61:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 1; i < rv.size(); i++) {
~~^~~~~~~~~~~
bodyguards.cpp:20:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &R);
~~~~~^~~~~~~~~~
bodyguards.cpp:22: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:23:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &C);
~~~~~^~~~~~~~~~
bodyguards.cpp:25: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);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~