F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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];
      |         ^~~~~


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-24 18:28:12, Gzip enabled