0_0_15596073_15987.cpp: In function 'int add(int, int, int, int)':
0_0_15596073_15987.cpp:39:5: error: reference to 'stack' is ambiguous
stack[++ snum] = 0;
^
0_0_15596073_15987.cpp:20:5: note: candidates are: int stack [1001]
int stack[1001];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/stack:61:0,
from 0_0_15596073_15987.cpp:11:
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_15596073_15987.cpp:42:9: error: reference to 'stack' is ambiguous
stack[snum] *= 10;
^
0_0_15596073_15987.cpp:20:5: note: candidates are: int stack [1001]
int stack[1001];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/stack:61:0,
from 0_0_15596073_15987.cpp:11:
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_15596073_15987.cpp:43:9: error: reference to 'stack' is ambiguous
stack[snum] += array[i];
^
0_0_15596073_15987.cpp:20:5: note: candidates are: int stack [1001]
int stack[1001];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/stack:61:0,
from 0_0_15596073_15987.cpp:11:
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_15596073_15987.cpp: In function 'int sort()':
0_0_15596073_15987.cpp:100:16: error: reference to 'stack' is ambiguous
if(stack[i] == stack[j])
^
0_0_15596073_15987.cpp:20:5: note: candidates are: int stack [1001]
int stack[1001];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/stack:61:0,
from 0_0_15596073_15987.cpp:11:
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_15596073_15987.cpp:100:28: error: reference to 'stack' is ambiguous
if(stack[i] == stack[j])
^
0_0_15596073_15987.cpp:20:5: note: candidates are: int stack [1001]
int stack[1001];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/stack:61:0,
from 0_0_15596073_15987.cpp:11:
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_15596073_15987.cpp:102:17: error: reference to 'stack' is ambiguous
stack[j] = stack[snum];
^
0_0_15596073_15987.cpp:20:5: note: candidates are: int stack [1001]
int stack[1001];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/stack:61:0,
from 0_0_15596073_15987.cpp:11:
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_15596073_15987.cpp:102:28: error: reference to 'stack' is ambiguous
stack[j] = stack[snum];
^
0_0_15596073_15987.cpp:20:5: note: candidates are: int stack [1001]
int stack[1001];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/stack:61:0,
from 0_0_15596073_15987.cpp:11:
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_15596073_15987.cpp:112:16: error: reference to 'stack' is ambiguous
if(stack[i] > stack[j])
^
0_0_15596073_15987.cpp:20:5: note: candidates are: int stack [1001]
int stack[1001];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/stack:61:0,
from 0_0_15596073_15987.cpp:11:
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_15596073_15987.cpp:112:27: error: reference to 'stack' is ambiguous
if(stack[i] > stack[j])
^
0_0_15596073_15987.cpp:20:5: note: candidates are: int stack [1001]
int stack[1001];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/stack:61:0,
from 0_0_15596073_15987.cpp:11:
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_15596073_15987.cpp:114:22: error: reference to 'stack' is ambiguous
swap(stack[i], stack[j]);
^
0_0_15596073_15987.cpp:20:5: note: candidates are: int stack [1001]
int stack[1001];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/stack:61:0,
from 0_0_15596073_15987.cpp:11:
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_15596073_15987.cpp:114:32: error: reference to 'stack' is ambiguous
swap(stack[i], stack[j]);
^
0_0_15596073_15987.cpp:20:5: note: candidates are: int stack [1001]
int stack[1001];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/stack:61:0,
from 0_0_15596073_15987.cpp:11:
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_15596073_15987.cpp: In function 'int main()':
0_0_15596073_15987.cpp:153:18: error: reference to 'stack' is ambiguous
prin(stack[i], n);
^
0_0_15596073_15987.cpp:20:5: note: candidates are: int stack [1001]
int stack[1001];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/stack:61:0,
from 0_0_15596073_15987.cpp:11:
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
^
|