bitaro.cpp: In function 'void solve_query(QUERY)':
bitaro.cpp:48:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j=0; j<gp[i].size(); j++){
~^~~~~~~~~~~~~
bitaro.cpp:56:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(idx<vt[now.t].size()){
~~~^~~~~~~~~~~~~~~~~
bitaro.cpp:60:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(idx==vt[now.t].size()) printf("-1\n");
~~~^~~~~~~~~~~~~~~~~~
bitaro.cpp: In function 'void solve()':
bitaro.cpp:73:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j=0; j<gp[i].size(); j++){
~^~~~~~~~~~~~~
bitaro.cpp:74:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int k=0; k<vt[gp[i][j]].size(); k++){
~^~~~~~~~~~~~~~~~~~~~
bitaro.cpp:80:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(index<vt[i].size() && cnt<SQ){
~~~~~^~~~~~~~~~~~~
bitaro.cpp:90:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(vt[i].size()>SQ || vt[i].back().data==-1) vt[i].pop_back();
~~~~~~~~~~~~^~~
bitaro.cpp:91:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j=0; j<vt[i].size(); j++){
~^~~~~~~~~~~~~
bitaro.cpp: In function 'int main()':
bitaro.cpp:120:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0; i<Query.size(); i++){
~^~~~~~~~~~~~~
bitaro.cpp:101:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d", &N, &M, &Q);
~~~~~^~~~~~~~~~~~~~~~~~~~~~
bitaro.cpp:104:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &a, &b);
~~~~~^~~~~~~~~~~~~~~~
bitaro.cpp:109:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &tmp.t, &tmp.y);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
bitaro.cpp:114:9: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &x); tmp.c.push_back(x);
~~~~~^~~~~~~~~~