Its is getting compiled but not showing output...why? (prateek and the coding)..pls check my code

#include
#include<bits/stdc++.h>
using namespace std;

int main () {
int q;
cin>>q;
stackst;
while(q–)
{
int a;
cin>>a;
if(a==β€˜2’)
{
int b;
cin>>b;
st.push(b);
}
else if(a==β€˜1’)
{
if(!st.empty())
{
int c=st.top();
st.pop();
cout<<c<<endl;
}
else{
cout<<β€œNo code”<<endl;
}
}
}
return 0;
}

hi @divisharoy14_5d0aa86c37c6588a,

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.