int stack[100000]={};int top=-1;void push(int x){ top++; stack[top]=x;}int pop(){ if(top==-1) return ; return stack[top--];}