hey whats wrong in my code ?? its running on other compiler but showing error on this
#include
#include
using namespace std;
int main () {
stack s;
int q;
cin>>q;
while(q--){
int queryType;
cin>>queryType;
if(queryType==1){
if(s.empty()){
cout<<"No code";
}
else{
cout<<s.top();
s.pop();
}
cout<<endl;
}
else{
int price;
cin>>price;
s.push(price);
}
}
return 0;
}