0_0_26979164_581.cpp:6:1: error: 'stack' does not name a type
stack<int> s1,s2,f;
^
0_0_26979164_581.cpp: In function 'int main()':
0_0_26979164_581.cpp:19:8: error: 'cin' was not declared in this scope
num=cin.get();
^
0_0_26979164_581.cpp:23:4: error: 's1' was not declared in this scope
s1.push(num);
^
0_0_26979164_581.cpp:25:3: error: expected ';' before 'printf'
printf(" + ");
^
0_0_26979164_581.cpp:28:8: error: 'cin' was not declared in this scope
num=cin.get();
^
0_0_26979164_581.cpp:32:4: error: 's2' was not declared in this scope
s2.push(num);
^
0_0_26979164_581.cpp:34:3: error: expected ';' before 'printf'
printf(" = ");
^
0_0_26979164_581.cpp:37:4: error: 'len' was not declared in this scope
len = len1;
^
0_0_26979164_581.cpp:43:4: error: 'len' was not declared in this scope
len = len2;
^
0_0_26979164_581.cpp:48:8: error: 'len' was not declared in this scope
for (len;len>0;len--)
^
0_0_26979164_581.cpp:51:11: error: 's1' was not declared in this scope
result=s1.front()+s2.front()+rest;
^
0_0_26979164_581.cpp:51:22: error: 's2' was not declared in this scope
result=s1.front()+s2.front()+rest;
^
0_0_26979164_581.cpp:58:5: error: 'f' was not declared in this scope
f.push(result);
^
0_0_26979164_581.cpp:66:9: error: 's2' was not declared in this scope
foo=s2.front()+rest;
^
0_0_26979164_581.cpp:70:6: error: expected ';' before 'foo'
foo -= 10;
^
0_0_26979164_581.cpp:74:5: error: 'f' was not declared in this scope
f.push(foo);
^
0_0_26979164_581.cpp:83:9: error: 's1' was not declared in this scope
foo=s1.front()+rest;
^
0_0_26979164_581.cpp:87:6: error: expected ';' before 'foo'
foo -= 10;
^
0_0_26979164_581.cpp:90:5: error: 's2' was not declared in this scope
s2.pop();
^
0_0_26979164_581.cpp:91:5: error: 'f' was not declared in this scope
f.push(foo);
^
0_0_26979164_581.cpp:95:13: error: 'f' was not declared in this scope
int r_len=f.size();
^
|