/ new_bzoj /

记录详情

Compile Error

/in/foo.cc: In function 'void get_sa(int, int)':
/in/foo.cc:14:9: error: reference to 'rank' is ambiguous
  memcpy(rank,a,sizeof(rank));
         ^~~~
/in/foo.cc:6:30: note: candidates are: int rank [210000]
 int wr[210000],Rsort[210000],rank[210000],y[210000],sa[210000];
                              ^~~~
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
            ^~~~
/in/foo.cc:14:23: error: reference to 'rank' is ambiguous
  memcpy(rank,a,sizeof(rank));
                       ^~~~
/in/foo.cc:6:30: note: candidates are: int rank [210000]
 int wr[210000],Rsort[210000],rank[210000],y[210000],sa[210000];
                              ^~~~
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
            ^~~~
/in/foo.cc:17:26: error: reference to 'rank' is ambiguous
  for(i=1;i<=n;i++) Rsort[rank[i]]++;
                          ^~~~
/in/foo.cc:6:30: note: candidates are: int rank [210000]
 int wr[210000],Rsort[210000],rank[210000],y[210000],sa[210000];
                              ^~~~
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
            ^~~~
/in/foo.cc:19:29: error: reference to 'rank' is ambiguous
  for(i=n;i>=1;i--) sa[Rsort[rank[i]]--]=i;
                             ^~~~
/in/foo.cc:6:30: note: candidates are: int rank [210000]
 int wr[210000],Rsort[210000],rank[210000],y[210000],sa[210000];
                              ^~~~
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
            ^~~~
/in/foo.cc:29:30: error: reference to 'rank' is ambiguous
      for(i=1;i<=n;i++) wr[i]=rank[y[i]];
                              ^~~~
/in/foo.cc:6:30: note: candidates are: int rank [210000]
 int wr[210000],Rsort[210000],rank[210000],y[210000],sa[210000];
                              ^~~~
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
            ^~~~
/in/foo.cc:36:16: error: reference to 'rank' is ambiguous
      memcpy(wr,rank,sizeof(wr));
                ^~~~
/in/foo.cc:6:30: note: candidates are: int rank [210000]
 int wr[210000],Rsort[210000],rank[210000],y[210000],sa[210000];
                              ^~~~
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
            ^~~~
/in/foo.cc:37:10: error: reference to 'rank' is ambiguous
      p=1;rank[sa[1]]=1;
          ^~~~
/in/foo.cc:6:30: note: candidates are: int rank [210000]
 int wr[210000],Rsort[210000],rank[210000],y[210000],sa[210000];
                              ^~~~
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
            ^~~~
/in/foo.cc:41:6: error: reference to 'rank' is ambiguous
      rank[sa[i]]=p;
      ^~~~
/in/foo.cc:6:30: note: candidates are: int rank [210000]
 int wr[210000],Rsort[210000],rank[210000],y[210000],sa[210000];
                              ^~~~
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
            ^~~~

信息

递交者
类型
递交
题目
字符加密Cipher
语言
C++
递交时间
2017-05-29 14:29:43
评测时间
2017-05-29 14:29:43
评测机
分数
0
总耗时
138ms
峰值内存
14.891 MiB