/ TYWZ /

记录详情

Compile Error

/in/foo.cc: In function 'void bfs(int)':
/in/foo.cc:8:2: error: reference to 'map' is ambiguous
  map[head+1]=0;                                                                                            
  ^~~
/in/foo.cc:4:9: note: candidates are: int map [30021]
 int s,t,map[maxn*3],que[maxn];                                                                                   
         ^~~
In file included from /usr/include/c++/6/map:61:0,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:81,
                 from /in/foo.cc:1:
/usr/include/c++/6/bits/stl_map.h:96:11: note:                 template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map
     class map
           ^~~
/in/foo.cc:14:7: error: reference to 'map' is ambiguous
    if(map[tx]==-1){
       ^~~
/in/foo.cc:4:9: note: candidates are: int map [30021]
 int s,t,map[maxn*3],que[maxn];                                                                                   
         ^~~
In file included from /usr/include/c++/6/map:61:0,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:81,
                 from /in/foo.cc:1:
/usr/include/c++/6/bits/stl_map.h:96:11: note:                 template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map
     class map
           ^~~
/in/foo.cc:17:5: error: reference to 'map' is ambiguous
     map[tx]=map[que[head]]+1;    
     ^~~
/in/foo.cc:4:9: note: candidates are: int map [30021]
 int s,t,map[maxn*3],que[maxn];                                                                                   
         ^~~
In file included from /usr/include/c++/6/map:61:0,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:81,
                 from /in/foo.cc:1:
/usr/include/c++/6/bits/stl_map.h:96:11: note:                 template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map
     class map
           ^~~
/in/foo.cc:17:13: error: reference to 'map' is ambiguous
     map[tx]=map[que[head]]+1;    
             ^~~
/in/foo.cc:4:9: note: candidates are: int map [30021]
 int s,t,map[maxn*3],que[maxn];                                                                                   
         ^~~
In file included from /usr/include/c++/6/map:61:0,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:81,
                 from /in/foo.cc:1:
/usr/include/c++/6/bits/stl_map.h:96:11: note:                 template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map
     class map
           ^~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:23:9: error: reference to 'map' is ambiguous
  memset(map,-1,sizeof(map));                                                                                            
         ^~~
/in/foo.cc:4:9: note: candidates are: int map [30021]
 int s,t,map[maxn*3],que[maxn];                                                                                   
         ^~~
In file included from /usr/include/c++/6/map:61:0,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:81,
                 from /in/foo.cc:1:
/usr/include/c++/6/bits/stl_map.h:96:11: note:                 template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map
     class map
           ^~~
/in/foo.cc:23:23: error: reference to 'map' is ambiguous
  memset(map,-1,sizeof(map));                                                                                            
                       ^~~
/in/foo.cc:4:9: note: candidates are: int map [30021]
 int s,t,map[maxn*3],que[maxn];                                                                                   
         ^~~
In file included from /usr/include/c++/6/map:61:0,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:81,
                 from /in/foo.cc:1:
/usr/include/c++/6/bits/stl_map.h:96:11: note:                 template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map
     class map
           ^~~
/in/foo.cc:26:8: error: reference to 'map' is ambiguous
  cout<<map[t];                                                                
        ^~~
/in/foo.cc:4:9: note: candidates are: int map [30021]
 int s,t,map[maxn*3],que[maxn];                                                                                   
         ^~~
In file included from /usr/include/c++/6/map:61:0,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:81,
                 from /in/foo.cc:1:
/usr/include/c++/6/bits/stl_map.h:96:11: note:                 template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map
     class map
           ^~~

信息

递交者
类型
递交
题目
Basic BFS
语言
C++
递交时间
2019-01-29 22:10:21
评测时间
2019-01-29 22:10:21
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes