Test Cases of Hostel Visit Problem

Can I get all the Test Cases of Hostel Visit Problem to test and rectify the mistakes in my code. My Code is working fine for the sample Test Case but giving wrong answer for all the other test cases

Hello @arpitsamadhiya00 share your code by saving it on Ide.codingblocks.com I will correct it.

#include #include #include<stdio.h> #include<stdlib.h> #include #include #define long long int LL using namespace std; int main() { int Q,k,T,x,y,j=0; cin>>Q>>k; //double arr[Q]; priority_queue arr; for(int i = 0; i<Q; i++) { cin>>T; if(T==1) { cin>>x>>y; arr.push(xx + yy); j++; } else { for(int i = 0; i<j; i++) { if(arr.size()>k) arr.pop(); else break; } cout<<arr.top()<<endl; } } return 0; }

@arpitsamadhiya00 check this:
https://ide.codingblocks.com/s/427260

What is the meaning of int32_t main()

@arpitsamadhiya00 her you have to take the data type as long long int. do i have declared the int as long long int and then redeclared the int in int main as int32_t.it is just the syntax.

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.