historic.cpp: In function 'bool cmp(ppi, ppi)':
historic.cpp:19:16: warning: variable 'tx' set but not used [-Wunused-but-set-variable]
pair<int,int> tx = { x.first.first / SQ,x.first.second / SQ };
^
historic.cpp:20:16: warning: variable 'ty' set but not used [-Wunused-but-set-variable]
pair<int,int> ty = { y.first.first / SQ,y.first.second / SQ };
^
historic.cpp: In function 'int main()':
historic.cpp:52:56: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
for (int i = 1; i <= q_len; i++) printf("%d\n", out[i]);
^
historic.cpp:32:28: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &n, &q_len);
^
historic.cpp:33:67: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for (int i = 1; i <= n; i++) scanf("%d", &in[i]), S.insert(in[i]);
^
historic.cpp:38:56: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &Q[i].first.first, &Q[i].first.second);
^