0_0_36695142_28180.cpp: In function 'int main()':
0_0_36695142_28180.cpp:32:28: error: reference to 'stack' is ambiguous
while (top > 0 and a[i] <= stack[top]) --top;
^
0_0_36695142_28180.cpp:21:11: note: candidates are: long long int stack [100011]
long long stack[100011],id[100011],top,l[100011],r[100011],a[100011],sum[100011];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/stack:61:0,
from 0_0_36695142_28180.cpp:15:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_stack.h:99:11: note: template<class _Tp, class _Sequence> class std::stack
class stack
^
0_0_36695142_28180.cpp:34:1: error: reference to 'stack' is ambiguous
stack[++top] = a[i];
^
0_0_36695142_28180.cpp:21:11: note: candidates are: long long int stack [100011]
long long stack[100011],id[100011],top,l[100011],r[100011],a[100011],sum[100011];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/stack:61:0,
from 0_0_36695142_28180.cpp:15:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_stack.h:99:11: note: template<class _Tp, class _Sequence> class std::stack
class stack
^
0_0_36695142_28180.cpp:40:28: error: reference to 'stack' is ambiguous
while (top > 0 and a[i] <= stack[top]) --top;
^
0_0_36695142_28180.cpp:21:11: note: candidates are: long long int stack [100011]
long long stack[100011],id[100011],top,l[100011],r[100011],a[100011],sum[100011];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/stack:61:0,
from 0_0_36695142_28180.cpp:15:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_stack.h:99:11: note: template<class _Tp, class _Sequence> class std::stack
class stack
^
0_0_36695142_28180.cpp:42:1: error: reference to 'stack' is ambiguous
stack[++top] = a[i];
^
0_0_36695142_28180.cpp:21:11: note: candidates are: long long int stack [100011]
long long stack[100011],id[100011],top,l[100011],r[100011],a[100011],sum[100011];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/stack:61:0,
from 0_0_36695142_28180.cpp:15:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_stack.h:99:11: note: template<class _Tp, class _Sequence> class std::stack
class stack
^
|