0_0_36695139_32618.cpp: In function 'int main()':
0_0_36695139_32618.cpp:36:20: error: reference to 'stack' is ambiguous
while (top > 0 and stack[top] >= h[i]) top--;
^
0_0_36695139_32618.cpp:22:11: note: candidates are: long long int stack [100011]
long long stack[100011],id[100011],h[100011],ans1[100011],ans2[100011],top = 0;
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/stack:61:0,
from 0_0_36695139_32618.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_36695139_32618.cpp:38:1: error: reference to 'stack' is ambiguous
stack[++top] = h[i];
^
0_0_36695139_32618.cpp:22:11: note: candidates are: long long int stack [100011]
long long stack[100011],id[100011],h[100011],ans1[100011],ans2[100011],top = 0;
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/stack:61:0,
from 0_0_36695139_32618.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_36695139_32618.cpp:45:20: error: reference to 'stack' is ambiguous
while (top > 0 and stack[top] >= h[i]) top--;
^
0_0_36695139_32618.cpp:22:11: note: candidates are: long long int stack [100011]
long long stack[100011],id[100011],h[100011],ans1[100011],ans2[100011],top = 0;
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/stack:61:0,
from 0_0_36695139_32618.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_36695139_32618.cpp:47:1: error: reference to 'stack' is ambiguous
stack[++top] = h[i];
^
0_0_36695139_32618.cpp:22:11: note: candidates are: long long int stack [100011]
long long stack[100011],id[100011],h[100011],ans1[100011],ans2[100011],top = 0;
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/stack:61:0,
from 0_0_36695139_32618.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
^
|