employment.cpp: In function 'void get_vc(int)':
employment.cpp:23:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0; i<sor[bnum].size(); i++){
~^~~~~~~~~~~~~~~~~
employment.cpp:29:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(i==sor[bnum].size()-1||sor[bnum][i+1].F!=sor[bnum][i].F){
~^~~~~~~~~~~~~~~~~~~~
employment.cpp: In function 'std::pair<int, std::pair<int, int> > query2(int, int)':
employment.cpp:36:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0; i<vc[bnum].size(); i++){
~^~~~~~~~~~~~~~~~
employment.cpp:37:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(i==vc[bnum].size()-1||vc[bnum][i+1].F.F>num)
~^~~~~~~~~~~~~~~~~~~
employment.cpp: In function 'void update(int, int, int)':
employment.cpp:55:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0; i<sor[bnum].size(); i++){
~^~~~~~~~~~~~~~~~~
employment.cpp:57:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(i==sor[bnum].size()-1||sor[bnum][i+1].F>=b){
~^~~~~~~~~~~~~~~~~~~~
employment.cpp: In function 'std::pair<int, std::pair<int, int> > query2(int, int)':
employment.cpp:40:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
employment.cpp: In function 'int main()':
employment.cpp:68:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &n, &q);
~~~~~^~~~~~~~~~~~~~~~~
employment.cpp:69:32: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for(int i=0; i<n; i++)scanf("%d", &arr[i]);
~~~~~^~~~~~~~~~~~~~~
employment.cpp:76:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &qnum);
~~~~~^~~~~~~~~~~~~
employment.cpp:79:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &a);
~~~~~^~~~~~~~~~
employment.cpp:84:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &a, &b);
~~~~~^~~~~~~~~~~~~~~~~