this is my code,what is wrong with it
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
int t;cin>>t;
int k;cin>>k;
priority_queue pq;
while(t–)
{
ll q;cin>>q;
if(q==1)
{
ll x,y;
cin>>x>>y;
ll distance=(xx)+(yy);
if(pq.size()<k)
pq.push(distance);
else
{
pq.pop();
pq.push(distance);
}
}
else
cout<<pq.top()<<endl;
}
return 0;
}