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:24:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(i!=sor[bnum].size()-1)assert(sor[bnum][i].F<=sor[bnum][i+1].F);
~^~~~~~~~~~~~~~~~~~~~
employment.cpp:30: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:37:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0; i<vc[bnum].size(); i++){
~^~~~~~~~~~~~~~~~
employment.cpp:38: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:56:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0; i<sor[bnum].size(); i++){
~^~~~~~~~~~~~~~~~~
employment.cpp:58: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:41:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
employment.cpp: In function 'int main()':
employment.cpp:69: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:70: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:77:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &qnum);
~~~~~^~~~~~~~~~~~~
employment.cpp:80:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &a);
~~~~~^~~~~~~~~~
employment.cpp:85:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &a, &b);
~~~~~^~~~~~~~~~~~~~~~~