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_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
           ^


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-09-29 13:31:11, Gzip enabled