0_0_37656967_9527.cpp:3:1: error: 'stack' does not name a type
stack <char> a;
^
0_0_37656967_9527.cpp: In function 'void reverse(int)':
0_0_37656967_9527.cpp:8:10: error: 'a' was not declared in this scope
while(!a.empty()){
^
0_0_37656967_9527.cpp:9:4: error: 'cout' was not declared in this scope
cout << a.top();
^
0_0_37656967_9527.cpp:12:3: error: 'cout' was not declared in this scope
cout << ' ';
^
0_0_37656967_9527.cpp:15:2: error: 'a' was not declared in this scope
a.push(ch[j]);
^
0_0_37656967_9527.cpp:17:8: error: 'a' was not declared in this scope
while(!a.empty()){
^
0_0_37656967_9527.cpp:18:4: error: 'cout' was not declared in this scope
cout << a.top();
^
0_0_37656967_9527.cpp:21:3: error: 'cout' was not declared in this scope
cout << endl;
^
0_0_37656967_9527.cpp:21:11: error: 'endl' was not declared in this scope
cout << endl;
^
0_0_37656967_9527.cpp: In function 'int main()':
0_0_37656967_9527.cpp:25:2: error: 'cin' was not declared in this scope
cin >> n;
^
0_0_37656967_9527.cpp:29:22: error: 'strlen' was not declared in this scope
int len = strlen(ch);
^
|