记录详情

Compile Error

/in/foo.cc: In function 'void dfs2(int, int)':
/in/foo.cc:37:22: error: reference to 'rank' is ambiguous
  top[x]=t,l[x]=++tot,rank[tot]=x;
                      ^~~~
/in/foo.cc:10:22: note: candidates are: int rank [110000]
 int son[N],l[N],r[N],rank[N],tot,n;
                      ^~~~
In file included from /usr/include/c++/6/bits/move.h:57:0,
                 from /usr/include/c++/6/bits/stl_pair.h:59,
                 from /usr/include/c++/6/utility:70,
                 from /usr/include/c++/6/algorithm:60,
                 from /in/foo.cc:3:
/usr/include/c++/6/type_traits:1482:12: note:                 template<class> struct std::rank
     struct rank
            ^~~~

信息

递交者
类型
递交
题目
软件包管理器
题目数据
下载
语言
C++
递交时间
2018-08-07 11:06:58
评测时间
2018-08-07 11:06:58
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes