/ new_bzoj /

记录详情

Compile Error

/in/foo.cc: In function 'void get_sa(int, int)':
/in/foo.cc:13:23: error: reference to 'rank' is ambiguous
     for(i=1;i<=n;i++) rank[i]=a[i];
                       ^~~~
/in/foo.cc:7:19: note: candidates are: int rank [210000]
 int Rsort[210000],rank[210000],sa[210000];
                   ^~~~
In file included from /usr/include/c++/6/bits/move.h:57:0,
                 from /usr/include/c++/6/bits/nested_exception.h:40,
                 from /usr/include/c++/6/exception:173,
                 from /usr/include/c++/6/ios:39,
                 from /usr/include/c++/6/ostream:38,
                 from /usr/include/c++/6/iostream:39,
                 from /in/foo.cc:3:
/usr/include/c++/6/type_traits:1482:12: note:                 template<class> struct std::rank
     struct rank
            ^~~~
/in/foo.cc:15:29: error: reference to 'rank' is ambiguous
     for(i=1;i<=n;i++) Rsort[rank[i]]++;
                             ^~~~
/in/foo.cc:7:19: note: candidates are: int rank [210000]
 int Rsort[210000],rank[210000],sa[210000];
                   ^~~~
In file included from /usr/include/c++/6/bits/move.h:57:0,
                 from /usr/include/c++/6/bits/nested_exception.h:40,
                 from /usr/include/c++/6/exception:173,
                 from /usr/include/c++/6/ios:39,
                 from /usr/include/c++/6/ostream:38,
                 from /usr/include/c++/6/iostream:39,
                 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:32: error: reference to 'rank' is ambiguous
     for(i=n;i>=1;i--) sa[Rsort[rank[i]]--]=i;  
                                ^~~~
/in/foo.cc:7:19: note: candidates are: int rank [210000]
 int Rsort[210000],rank[210000],sa[210000];
                   ^~~~
In file included from /usr/include/c++/6/bits/move.h:57:0,
                 from /usr/include/c++/6/bits/nested_exception.h:40,
                 from /usr/include/c++/6/exception:173,
                 from /usr/include/c++/6/ios:39,
                 from /usr/include/c++/6/ostream:38,
                 from /usr/include/c++/6/iostream:39,
                 from /in/foo.cc:3:
/usr/include/c++/6/type_traits:1482:12: note:                 template<class> struct std::rank
     struct rank
            ^~~~
/in/foo.cc:23:33: error: reference to 'rank' is ambiguous
         for(i=1;i<=n;i++) wr[i]=rank[y[i]];
                                 ^~~~
/in/foo.cc:7:19: note: candidates are: int rank [210000]
 int Rsort[210000],rank[210000],sa[210000];
                   ^~~~
In file included from /usr/include/c++/6/bits/move.h:57:0,
                 from /usr/include/c++/6/bits/nested_exception.h:40,
                 from /usr/include/c++/6/exception:173,
                 from /usr/include/c++/6/ios:39,
                 from /usr/include/c++/6/ostream:38,
                 from /usr/include/c++/6/iostream:39,
                 from /in/foo.cc:3:
/usr/include/c++/6/type_traits:1482:12: note:                 template<class> struct std::rank
     struct rank
            ^~~~
/in/foo.cc:28:19: error: reference to 'rank' is ambiguous
         memcpy(wr,rank,sizeof(wr));   
                   ^~~~
/in/foo.cc:7:19: note: candidates are: int rank [210000]
 int Rsort[210000],rank[210000],sa[210000];
                   ^~~~
In file included from /usr/include/c++/6/bits/move.h:57:0,
                 from /usr/include/c++/6/bits/nested_exception.h:40,
                 from /usr/include/c++/6/exception:173,
                 from /usr/include/c++/6/ios:39,
                 from /usr/include/c++/6/ostream:38,
                 from /usr/include/c++/6/iostream:39,
                 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:13: error: reference to 'rank' is ambiguous
         p=1;rank[sa[1]]=1;
             ^~~~
/in/foo.cc:7:19: note: candidates are: int rank [210000]
 int Rsort[210000],rank[210000],sa[210000];
                   ^~~~
In file included from /usr/include/c++/6/bits/move.h:57:0,
                 from /usr/include/c++/6/bits/nested_exception.h:40,
                 from /usr/include/c++/6/exception:173,
                 from /usr/include/c++/6/ios:39,
                 from /usr/include/c++/6/ostream:38,
                 from /usr/include/c++/6/iostream:39,
                 from /in/foo.cc:3:
/usr/include/c++/6/type_traits:1482:12: note:                 template<class> struct std::rank
     struct rank
            ^~~~
/in/foo.cc:33:13: error: reference to 'rank' is ambiguous
             rank[sa[i]]=p;
             ^~~~
/in/foo.cc:7:19: note: candidates are: int rank [210000]
 int Rsort[210000],rank[210000],sa[210000];
                   ^~~~
In file included from /usr/include/c++/6/bits/move.h:57:0,
                 from /usr/include/c++/6/bits/nested_exception.h:40,
                 from /usr/include/c++/6/exception:173,
                 from /usr/include/c++/6/ios:39,
                 from /usr/include/c++/6/ostream:38,
                 from /usr/include/c++/6/iostream:39,
                 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:36:42
评测时间
2017-05-29 14:36:42
评测机
分数
0
总耗时
338ms
峰值内存
33.242 MiB