/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'void DFS(int, int, int)':
/in/foo.cc:11:9: error: reference to 'map' is ambiguous
     if (map[x][y] <= step)
         ^~~
/in/foo.cc:5:11: note: candidates are: int map [25][25]
 int n, m, map[25][25];
           ^~~
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:13:5: error: reference to 'map' is ambiguous
     map[x][y] = step;
     ^~~
/in/foo.cc:5:11: note: candidates are: int map [25][25]
 int n, m, map[25][25];
           ^~~
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:35:17: error: reference to 'map' is ambiguous
                 map[i][j] = inf;
                 ^~~
/in/foo.cc:5:11: note: candidates are: int map [25][25]
 int n, m, map[25][25];
           ^~~
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:41:24: error: reference to 'map' is ambiguous
             if (minn > map[n - 1][i])
                        ^~~
/in/foo.cc:5:11: note: candidates are: int map [25][25]
 int n, m, map[25][25];
           ^~~
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:42:24: error: reference to 'map' is ambiguous
                 minn = map[n - 1][i];
                        ^~~
/in/foo.cc:5:11: note: candidates are: int map [25][25]
 int n, m, map[25][25];
           ^~~
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
           ^~~

信息

递交者
类型
递交
题目
P1406 古韵之鹊桥相会
语言
C++
递交时间
2024-10-07 17:10:47
评测时间
2024-10-07 17:10:47
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes