/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:43:52: error: reference to 'rank' is ambiguous
  for(int i=1;i<=n;++i) update(1,Size,rt[i-1],rt[i],rank(a[i]));
                                                    ^~~~
/in/foo.cc:17:5: note: candidates are: int rank(int)
 int rank(int x) {return lower_bound(b+1,b+1+Size,x)-b;}
     ^~~~
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:1:
/usr/include/c++/6/type_traits:1482:12: note:                 template<class> struct std::rank
     struct rank
            ^~~~

信息

递交者
类型
递交
题目
P1081 野生动物园
语言
C++
递交时间
2017-11-23 21:38:07
评测时间
2017-11-23 21:38:07
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes