#include<stdio.h> char stack[200]; int top=0; void Push(char e){ stack[top++]=e; } void Pop(void){ top--; } main(){ char ch; int temp; ch=getchar(); while(ch!=EOF){ while(ch!=EOF&&ch!='\n'){ switch(ch){ case '#': Pop(); break; case '@': top=0; break; default: Push(ch); break; } ch=getchar(); } temp=0; while(temp!=top){ printf("%c",stack[temp]); temp++; } top=0; printf("\n"); if(ch!=EOF) ch=getchar(); } return 0; } /************************************************************** Problem: 2143 User: admin Language: C Result: Runtime Error ****************************************************************/