0_0_18053884_9449.cpp: In function 'int main()':
0_0_18053884_9449.cpp:12:16: error: conflicting declaration 'char s [100005]'
char s[100005];
^
0_0_18053884_9449.cpp:9:14: note: previous declaration as 'std::stack<char> s'
stack<char>s;
^
0_0_18053884_9449.cpp:13:15: error: cannot pass objects of non-trivially-copyable type 'class std::stack<char>' through '...'
scanf("%s",s);
^
0_0_18053884_9449.cpp:19:7: error: no match for 'operator[]' (operand types are 'std::stack<char>' and 'int')
x=s[0];
^
0_0_18053884_9449.cpp:20:7: error: no match for 'operator[]' (operand types are 'std::stack<char>' and 'int')
y=s[1];
^
0_0_18053884_9449.cpp:34:8: error: 'str' was not declared in this scope
ch=str[i++];
^
|