/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'bool Hungry_Dfs(int)':
/in/foo.cc:34:12: error: reference to 'map' is ambiguous
         if(map[Now][i]&&!vst[i]) {
            ^~~
/in/foo.cc:31:5: note: candidates are: int map [105][105]
 int map[105][105],vst[105],To[105],From[105];
     ^~~
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:2:
/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 'void Dfs(int, int)':
/in/foo.cc:64:16: error: reference to 'map' is ambiguous
             if(map[i][Front]&&!vst[From[i]]) { //如果当前的炸弹可以被交换,那么当前的入队 
                ^~~
/in/foo.cc:31:5: note: candidates are: int map [105][105]
 int map[105][105],vst[105],To[105],From[105];
     ^~~
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:2:
/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:74:28: error: reference to 'map' is ambiguous
     for(int i=1; i<=n; i++)map[sum+1][i]=f[i][Now][Maxl]; //统计有的边
                            ^~~
/in/foo.cc:31:5: note: candidates are: int map [105][105]
 int map[105][105],vst[105],To[105],From[105];
     ^~~
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:2:
/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:77:32: error: reference to 'map' is ambiguous
         for(int j=1; j<=n; j++)map[sum+1][j]=f[j][Now][i]; //统计有的边
                                ^~~
/in/foo.cc:31:5: note: candidates are: int map [105][105]
 int map[105][105],vst[105],To[105],From[105];
     ^~~
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:2:
/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
           ^~~

信息

递交者
类型
递交
题目
P1018 智破连环阵
语言
C++
递交时间
2020-05-23 15:28:11
评测时间
2020-05-23 15:28:11
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes