Prateek sir and coding problem

#include
#include
using namespace std;
int main () {
stacks;
int n;
cin>>n;
for(int i=0;i<n;i++)
{
int n2,c;
cin>>n2;
if(n2==2)
{
cin>>c;
s.push©;
}
if(n2==1)
{
if(s.empty())
{
cout<<“No Code”;
}
cout<<s.top()<<endl;
s.pop();
}
}
return 0;
}
why my code give wronge ans??
plzz help me

Please save your code on ide.codingblocks.com and then share its link.

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.