foo.cc: In function ‘int main()’:
foo.cc:28:20: warning: comparison of integer expressions of different signedness: ‘int’ and ‘__gnu_pbds::detail::bin_search_tree_set<node, __gnu_pbds::null_type, std::greater<node>, __gnu_pbds::detail::tree_traits<node, __gnu_pbds::null_type, std::greater<node>, __gnu_pbds::tree_order_statistics_node_update, __gnu_pbds::rb_tree_tag, std::allocator<char> >, std::allocator<char> >::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
28 | printf(k>T.size()?"-1\n":"%d\n",T.find_by_order(k-1)->v-s);
| ~^~~~~~~~~
foo.cc:15:18: warning: unused variable ‘q’ [-Wunused-variable]
15 | int n,m,k,s=0,q,ans=0;
| ^