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_15596014_10786.cpp: In function 'void add(int, int, int, int)':
0_0_15596014_10786.cpp:34:18: error: reference to 'list' is ambiguous
    cun[tot].next=list[a];
                  ^
0_0_15596014_10786.cpp:24:5: note: candidates are: int list [1005]
 int list[N],dis[N],hx[N],hy[N],px[N],py[N],tot,pre[N],pr[N];
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/list:63:0,
                 from 0_0_15596014_10786.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_15596014_10786.cpp:36:4: error: reference to 'list' is ambiguous
    list[a]=tot;    
    ^
0_0_15596014_10786.cpp:24:5: note: candidates are: int list [1005]
 int list[N],dis[N],hx[N],hy[N],px[N],py[N],tot,pre[N],pr[N];
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/list:63:0,
                 from 0_0_15596014_10786.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_15596014_10786.cpp:40:18: error: reference to 'list' is ambiguous
    cun[tot].next=list[b];
                  ^
0_0_15596014_10786.cpp:24:5: note: candidates are: int list [1005]
 int list[N],dis[N],hx[N],hy[N],px[N],py[N],tot,pre[N],pr[N];
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/list:63:0,
                 from 0_0_15596014_10786.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_15596014_10786.cpp:42:4: error: reference to 'list' is ambiguous
    list[b]=tot;
    ^
0_0_15596014_10786.cpp:24:5: note: candidates are: int list [1005]
 int list[N],dis[N],hx[N],hy[N],px[N],py[N],tot,pre[N],pr[N];
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/list:63:0,
                 from 0_0_15596014_10786.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_15596014_10786.cpp: In function 'int spfa(int, int)':
0_0_15596014_10786.cpp:67:20: error: reference to 'list' is ambiguous
          for(int i=list[k];i;i=cun[i].next)
                    ^
0_0_15596014_10786.cpp:24:5: note: candidates are: int list [1005]
 int list[N],dis[N],hx[N],hy[N],px[N],py[N],tot,pre[N],pr[N];
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/list:63:0,
                 from 0_0_15596014_10786.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_15596014_10786.cpp: In function 'void clear()':
0_0_15596014_10786.cpp:110:11: error: reference to 'list' is ambiguous
    memset(list,0,sizeof(list));
           ^
0_0_15596014_10786.cpp:24:5: note: candidates are: int list [1005]
 int list[N],dis[N],hx[N],hy[N],px[N],py[N],tot,pre[N],pr[N];
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/list:63:0,
                 from 0_0_15596014_10786.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_15596014_10786.cpp:110:25: error: reference to 'list' is ambiguous
    memset(list,0,sizeof(list));
                         ^
0_0_15596014_10786.cpp:24:5: note: candidates are: int list [1005]
 int list[N],dis[N],hx[N],hy[N],px[N],py[N],tot,pre[N],pr[N];
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/list:63:0,
                 from 0_0_15596014_10786.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_15596014_10786.cpp: In function 'int main()':
0_0_15596014_10786.cpp:127:33: error: reference to 'map' is ambiguous
                     scanf("%c",&map[i][j]);
                                 ^
0_0_15596014_10786.cpp:25:6: note: candidates are: char map [205][205]
 char map[205][205];
      ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:61:0,
                 from 0_0_15596014_10786.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_15596014_10786.cpp:128:24: error: reference to 'map' is ambiguous
                     if(map[i][j]=='H')   {hx[count]=i; hy[count++]=j;}
                        ^
0_0_15596014_10786.cpp:25:6: note: candidates are: char map [205][205]
 char map[205][205];
      ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:61:0,
                 from 0_0_15596014_10786.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_15596014_10786.cpp:129:24: error: reference to 'map' is ambiguous
                     if(map[i][j]=='m')    {px[kk]=i; py[kk++]=j;}
                        ^
0_0_15596014_10786.cpp:25:6: note: candidates are: char map [205][205]
 char map[205][205];
      ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:61:0,
                 from 0_0_15596014_10786.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
           ^


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-24 23:18:15, Gzip enabled