Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- using namespace std;
- int push(int tos, int x);
- int pop(int tos);
- int st[50];
- int tos=-1;
- int main()
- {
- char str[30];
- int r,k,v1,v2,i;
- cin>>str;
- for(i=0;str[i]!='