/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'bool dfs(int)':
/in/foo.cc:12:23: error: reference to 'map' is ambiguous
         if(!visit[i]&&map[x][i])
                       ^~~
/in/foo.cc:4:5: note: candidates are: int map [102][102]
 int map[102][102];
     ^~~
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:36:17: error: reference to 'map' is ambiguous
                 map[i][j]=1;
                 ^~~
/in/foo.cc:4:5: note: candidates are: int map [102][102]
 int map[102][102];
     ^~~
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
           ^~~

信息

递交者
类型
递交
题目
P1204 CoVH之柯南开锁
语言
C++
递交时间
2024-01-31 15:15:35
评测时间
2024-01-31 15:15:35
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes