bitaro.cpp: In function 'void solve_query(QUERY)':
bitaro.cpp:45:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j=0; j<gp[i].size(); j++){
~^~~~~~~~~~~~~
bitaro.cpp:53:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(idx<vt[now.t].size()){
~~~^~~~~~~~~~~~~~~~~
bitaro.cpp:57: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:70:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j=0; j<gp[i].size(); j++){
~^~~~~~~~~~~~~
bitaro.cpp:71:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int k=0; k<vt[gp[i][j]].size(); k++){
~^~~~~~~~~~~~~~~~~~~~
bitaro.cpp:77:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(idx<vt[i].size() && cnt<SQ){
~~~^~~~~~~~~~~~~
bitaro.cpp:87: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:88: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:114:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0; i<Query.size(); i++){
~^~~~~~~~~~~~~
bitaro.cpp:95: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:98: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:103: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:108: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);
~~~~~^~~~~~~~~~