This code not printing anything whats the error?

#include<bits/stdc++.h>
using namespace std;
int main() {
int q,k;
cin>>q;
cin>>k;
priority_queue<int,vector,greater>pq;
vectorv;
while (q>0){
int p,x2,y2,z;
cin>>p;
cin>>x2;
cin>>y2;
if (p==1){
z=pow(x2,2)+pow(y2,2);
pq.push(z);

	}
	else{
		int o,m;
		o=k;
		while(o>1){
			m=pq.top();
			v.push_back(m);
			pq.pop();
			o=o-1;
		} 
		cout<<pq.top();
		int h;
		while(!v.empty())
		{
			h=v.back();
			v.pop_back();
			pq.push(h);
			
		}
	}
}

return 0;

}

not getting expected answer

Please send your code id. Don’t send code directly in message.

sorry sir ,I am new here so its taking time to get the hang of it

thats the link of code

Refer this and you will get what is going wrong with your code.

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.