0_0_39803780_32301.cpp: In function 'double Graham()':
0_0_39803780_32301.cpp:42:27: error: reference to 'stack' is ambiguous
42 | for(i = 0;i < 3;i++) stack[i] = i;
| ^~~~~
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/stack:63,
from .\stdc++.h:160:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_stack.h:99:11: note: candidates are: 'template<class _Tp, class _Sequence> class std::stack'
99 | class stack
| ^~~~~
0_0_39803780_32301.cpp:7:9: note: 'int stack [110]'
7 | int n , stack[maxn];
| ^~~~~
0_0_39803780_32301.cpp:46:31: error: reference to 'stack' is ambiguous
46 | while(Cross_left(p[stack[top]] , p[i] , p[stack[top-1]]) <= 0)//共线情况不入栈
| ^~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_stack.h:99:11: note: candidates are: 'template<class _Tp, class _Sequence> class std::stack'
99 | class stack
| ^~~~~
0_0_39803780_32301.cpp:7:9: note: 'int stack [110]'
7 | int n , stack[maxn];
| ^~~~~
0_0_39803780_32301.cpp:46:54: error: reference to 'stack' is ambiguous
46 | while(Cross_left(p[stack[top]] , p[i] , p[stack[top-1]]) <= 0)//共线情况不入栈
| ^~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_stack.h:99:11: note: candidates are: 'template<class _Tp, class _Sequence> class std::stack'
99 | class stack
| ^~~~~
0_0_39803780_32301.cpp:7:9: note: 'int stack [110]'
7 | int n , stack[maxn];
| ^~~~~
0_0_39803780_32301.cpp:51:12: error: reference to 'stack' is ambiguous
51 | stack[++top] = i;
| ^~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_stack.h:99:11: note: candidates are: 'template<class _Tp, class _Sequence> class std::stack'
99 | class stack
| ^~~~~
0_0_39803780_32301.cpp:7:9: note: 'int stack [110]'
7 | int n , stack[maxn];
| ^~~~~
0_0_39803780_32301.cpp:55:24: error: reference to 'stack' is ambiguous
55 | cir += dis(p[stack[i]] , p[stack[(i+1)%top]]);
| ^~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_stack.h:99:11: note: candidates are: 'template<class _Tp, class _Sequence> class std::stack'
99 | class stack
| ^~~~~
0_0_39803780_32301.cpp:7:9: note: 'int stack [110]'
7 | int n , stack[maxn];
| ^~~~~
0_0_39803780_32301.cpp:55:38: error: reference to 'stack' is ambiguous
55 | cir += dis(p[stack[i]] , p[stack[(i+1)%top]]);
| ^~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_stack.h:99:11: note: candidates are: 'template<class _Tp, class _Sequence> class std::stack'
99 | class stack
| ^~~~~
0_0_39803780_32301.cpp:7:9: note: 'int stack [110]'
7 | int n , stack[maxn];
| ^~~~~
|