#include #include #include #include using namespace std; struct pol { string pl; long l; }; bool range(long a) { if(a>=-1000000000 && a<=1000000000) return 1; else return 0; } int main() { string a; cin >> a; while(a!="QUIT") { vector tab; while(a!="END") { pol tmp; tmp.pl=a; if(a=="NUM") { long l; scanf("%ld", &l); tmp.l=l; } tab.push_back(tmp); cin >> a; } int n; scanf("%d", &n); bool czy=1; for(int x=1;x<=n;++x) { long p; scanf("%ld", &p); if(!range(p)) { printf("ERROR\n"); continue; } stack stos; stos.push(p); if(!czy) { printf("ERROR\n"); continue; } bool kk=1; for(int i=0;i> a; } return 0; }