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_15595891_24793.cpp: In function 'void add(int, int)':
0_0_15595891_24793.cpp:33:17: error: reference to 'list' is ambiguous
   cun[tot].next=list[a];
                 ^
0_0_15595891_24793.cpp:20:13: note: candidates are: int list [10005]
 int tot,n,k,list[10005],mark_dfs[10005],mark_gx[20005],mark[105],map[205][205];
             ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/list:63:0,
                 from 0_0_15595891_24793.cpp:8:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_list.h:447:11: note:                 template<class _Tp, class _Alloc> class std::list
     class list : protected _List_base<_Tp, _Alloc>
           ^
0_0_15595891_24793.cpp:34:3: error: reference to 'list' is ambiguous
   list[a]=tot++;
   ^
0_0_15595891_24793.cpp:20:13: note: candidates are: int list [10005]
 int tot,n,k,list[10005],mark_dfs[10005],mark_gx[20005],mark[105],map[205][205];
             ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/list:63:0,
                 from 0_0_15595891_24793.cpp:8:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_list.h:447:11: note:                 template<class _Tp, class _Alloc> class std::list
     class list : protected _List_base<_Tp, _Alloc>
           ^
0_0_15595891_24793.cpp: In function 'int dfs(int)':
0_0_15595891_24793.cpp:38:13: error: reference to 'list' is ambiguous
   for(int i=list[x];i;i=cun[i].next)
             ^
0_0_15595891_24793.cpp:20:13: note: candidates are: int list [10005]
 int tot,n,k,list[10005],mark_dfs[10005],mark_gx[20005],mark[105],map[205][205];
             ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/list:63:0,
                 from 0_0_15595891_24793.cpp:8:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_list.h:447:11: note:                 template<class _Tp, class _Alloc> class std::list
     class list : protected _List_base<_Tp, _Alloc>
           ^
0_0_15595891_24793.cpp: In function 'int main()':
0_0_15595891_24793.cpp:63:15: error: reference to 'map' is ambiguous
               map[i][j]=a;
               ^
0_0_15595891_24793.cpp:20:66: note: candidates are: int map [205][205]
 int tot,n,k,list[10005],mark_dfs[10005],mark_gx[20005],mark[105],map[205][205];
                                                                  ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:61:0,
                 from 0_0_15595891_24793.cpp:9:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:96:11: note:                 template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map
     class map
           ^
0_0_15595891_24793.cpp:75:24: error: reference to 'list' is ambiguous
                 memset(list,0,sizeof(list));
                        ^
0_0_15595891_24793.cpp:20:13: note: candidates are: int list [10005]
 int tot,n,k,list[10005],mark_dfs[10005],mark_gx[20005],mark[105],map[205][205];
             ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/list:63:0,
                 from 0_0_15595891_24793.cpp:8:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_list.h:447:11: note:                 template<class _Tp, class _Alloc> class std::list
     class list : protected _List_base<_Tp, _Alloc>
           ^
0_0_15595891_24793.cpp:75:38: error: reference to 'list' is ambiguous
                 memset(list,0,sizeof(list));
                                      ^
0_0_15595891_24793.cpp:20:13: note: candidates are: int list [10005]
 int tot,n,k,list[10005],mark_dfs[10005],mark_gx[20005],mark[105],map[205][205];
             ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/list:63:0,
                 from 0_0_15595891_24793.cpp:8:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_list.h:447:11: note:                 template<class _Tp, class _Alloc> class std::list
     class list : protected _List_base<_Tp, _Alloc>
           ^


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-10-23 21:31:53, Gzip enabled