The given code works fine on my PC, but it does not even compile when done here

#include
#include<ext/pb_ds/assoc_container.hpp>
#include<ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
using namespace std;
#define ll long long int
int main()
{
typedef tree<ll,null_type,less,rb_tree_tag,tree_order_statistics_node_update> map_t;
map_t os;
ll q,k;
cin>>q>>k;
while(q–)
{
ll t;
cin>>t;
if(t==1)
{
ll x,y;
cin>>x>>y;
os.insert(xx+yy);
}
else
{
cout<<*os.find_by_order(2)<<endl;
}

}
return 0;

}

I think you can’t use external libraries on hackerblocks. Try to solve it using pre-defined header files

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.

now it is compiling with the second test case failing