0_0_33378181_8453.cpp:7:18: error: conflicting declaration 'std::stack<long long int> s'
stack<long long> s;
^
0_0_33378181_8453.cpp:6:6: note: previous declaration as 'char s [10]'
char s[10];
^
0_0_33378181_8453.cpp: In function 'int main()':
0_0_33378181_8453.cpp:21:7: error: request for member 'push' in 's', which is of non-class type 'char [10]'
s.push(x);
^
0_0_33378181_8453.cpp:55:19: error: request for member 'top' in 's', which is of non-class type 'char [10]'
long long x=s.top(),l=1,r=m+1,mid;
^
0_0_33378181_8453.cpp:56:12: error: 'r' was not declared in this scope
while((r-l)>1)
^
0_0_33378181_8453.cpp:56:14: error: 'l' was not declared in this scope
while((r-l)>1)
^
0_0_33378181_8453.cpp:58:6: error: 'mid' was not declared in this scope
mid=(l+r)>>1;
^
0_0_33378181_8453.cpp:68:21: error: 'l' was not declared in this scope
for(long long j=l;j<m;j++)
^
0_0_33378181_8453.cpp:72:7: error: request for member 'pop' in 's', which is of non-class type 'char [10]'
s.pop();
^
|