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);
^
|