F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_26979003_8664.cpp:6:1: error: 'stack' does not name a type
 stack<int> s1,s2,f;
 ^
0_0_26979003_8664.cpp: In function 'int main()':
0_0_26979003_8664.cpp:19:8: error: 'cin' was not declared in this scope
    num=cin.get();
        ^
0_0_26979003_8664.cpp:23:4: error: 's1' was not declared in this scope
    s1.push(num);
    ^
0_0_26979003_8664.cpp:25:3: error: expected ';' before 'printf'
   printf(" + ");
   ^
0_0_26979003_8664.cpp:28:8: error: 'cin' was not declared in this scope
    num=cin.get();
        ^
0_0_26979003_8664.cpp:32:4: error: 's2' was not declared in this scope
    s2.push(num);
    ^
0_0_26979003_8664.cpp:34:3: error: expected ';' before 'if'
   if (len1<len2) 
   ^
0_0_26979003_8664.cpp:36:4: error: 'len' was not declared in this scope
    len = len1;
    ^
0_0_26979003_8664.cpp:42:4: error: 'len' was not declared in this scope
    len = len2;
    ^
0_0_26979003_8664.cpp:47:8: error: 'len' was not declared in this scope
   for (len;len>0;len--)
        ^
0_0_26979003_8664.cpp:50:11: error: 's1' was not declared in this scope
    result=s1.front()+s2.front()+rest;
           ^
0_0_26979003_8664.cpp:50:22: error: 's2' was not declared in this scope
    result=s1.front()+s2.front()+rest;
                      ^
0_0_26979003_8664.cpp:57:5: error: 'f' was not declared in this scope
     f.push(result);
     ^
0_0_26979003_8664.cpp:65:9: error: 's2' was not declared in this scope
     foo=s2.front()+rest;
         ^
0_0_26979003_8664.cpp:69:6: error: expected ';' before 'foo'
      foo -= 10;
      ^
0_0_26979003_8664.cpp:73:5: error: 'f' was not declared in this scope
     f.push(foo);
     ^
0_0_26979003_8664.cpp:82:9: error: 's1' was not declared in this scope
     foo=s1.front()+rest;
         ^
0_0_26979003_8664.cpp:86:6: error: expected ';' before 'foo'
      foo -= 10;
      ^
0_0_26979003_8664.cpp:89:5: error: 's2' was not declared in this scope
     s2.pop();
     ^
0_0_26979003_8664.cpp:90:5: error: 'f' was not declared in this scope
     f.push(foo);
     ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.001000(s) query 1, Server time : 2025-02-18 19:43:09, Gzip enabled