Why is this wrong

#include
#include
using namespace std;
int main () {
stack s;
int t;
cin>>t;
while(t–){
int n;
cin>>n;
if(n==2){
int m;
cin>>m;
s.push(m);
}
if(n==1){
if(!s.empty()){
cout<<s.top()<<endl;
s.pop();
}
else{
cout<<“No Code”;
}
}
}
return 0;
}