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_15597185_29906.cpp: In function 'void Polish(char*, int)':
0_0_15597185_29906.cpp:62:13: error: reference to 'stack' is ambiguous
             stack[top] = s[i];
             ^
0_0_15597185_29906.cpp:23:6: note: candidates are: char stack [500]
 char stack[500];                    
      ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/stack:61:0,
                 from 0_0_15597185_29906.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_15597185_29906.cpp:66:27: error: reference to 'stack' is ambiguous
             if (top==0 || stack[top]==')' || priority(s[i]) >= priority(stack[top])) 
                           ^
0_0_15597185_29906.cpp:23:6: note: candidates are: char stack [500]
 char stack[500];                    
      ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/stack:61:0,
                 from 0_0_15597185_29906.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_15597185_29906.cpp:66:73: error: reference to 'stack' is ambiguous
             if (top==0 || stack[top]==')' || priority(s[i]) >= priority(stack[top])) 
                                                                         ^
0_0_15597185_29906.cpp:23:6: note: candidates are: char stack [500]
 char stack[500];                    
      ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/stack:61:0,
                 from 0_0_15597185_29906.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_15597185_29906.cpp:69:17: error: reference to 'stack' is ambiguous
                 stack[top] = s[i];
                 ^
0_0_15597185_29906.cpp:23:6: note: candidates are: char stack [500]
 char stack[500];                    
      ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/stack:61:0,
                 from 0_0_15597185_29906.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_15597185_29906.cpp:74:36: error: reference to 'stack' is ambiguous
                 output[outLen++] = stack[top];
                                    ^
0_0_15597185_29906.cpp:23:6: note: candidates are: char stack [500]
 char stack[500];                    
      ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/stack:61:0,
                 from 0_0_15597185_29906.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_15597185_29906.cpp:81:20: error: reference to 'stack' is ambiguous
             while (stack[top]!=')')
                    ^
0_0_15597185_29906.cpp:23:6: note: candidates are: char stack [500]
 char stack[500];                    
      ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/stack:61:0,
                 from 0_0_15597185_29906.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_15597185_29906.cpp:83:36: error: reference to 'stack' is ambiguous
                 output[outLen++] = stack[top];
                                    ^
0_0_15597185_29906.cpp:23:6: note: candidates are: char stack [500]
 char stack[500];                    
      ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/stack:61:0,
                 from 0_0_15597185_29906.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_15597185_29906.cpp:92:28: error: reference to 'stack' is ambiguous
         output[outLen++] = stack[top];
                            ^
0_0_15597185_29906.cpp:23:6: note: candidates are: char stack [500]
 char stack[500];                    
      ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/stack:61:0,
                 from 0_0_15597185_29906.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
           ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2025-02-18 21:39:44, Gzip enabled