/ new_bzoj /

记录详情

Compile Error

/in/foo.cc: In function 'int cmp(const int&, const int&)':
/in/foo.cc:36:5: error: reference to 'rank' is ambiguous
  if(rank[i]!=rank[j]) return rank[i]<rank[j];
     ^~~~
/in/foo.cc:32:21: note: candidates are: int rank [400010]
 int n,sa[4*maxn+10],rank[4*maxn+10],k,tmp[4*maxn+10];
                     ^~~~
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:4:
/usr/include/c++/6/type_traits:1482:12: note:                 template<class> struct std::rank
     struct rank
            ^~~~
/in/foo.cc:36:14: error: reference to 'rank' is ambiguous
  if(rank[i]!=rank[j]) return rank[i]<rank[j];
              ^~~~
/in/foo.cc:32:21: note: candidates are: int rank [400010]
 int n,sa[4*maxn+10],rank[4*maxn+10],k,tmp[4*maxn+10];
                     ^~~~
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:4:
/usr/include/c++/6/type_traits:1482:12: note:                 template<class> struct std::rank
     struct rank
            ^~~~
/in/foo.cc:36:30: error: reference to 'rank' is ambiguous
  if(rank[i]!=rank[j]) return rank[i]<rank[j];
                              ^~~~
/in/foo.cc:32:21: note: candidates are: int rank [400010]
 int n,sa[4*maxn+10],rank[4*maxn+10],k,tmp[4*maxn+10];
                     ^~~~
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:4:
/usr/include/c++/6/type_traits:1482:12: note:                 template<class> struct std::rank
     struct rank
            ^~~~
/in/foo.cc:36:38: error: reference to 'rank' is ambiguous
  if(rank[i]!=rank[j]) return rank[i]<rank[j];
                                      ^~~~
/in/foo.cc:32:21: note: candidates are: int rank [400010]
 int n,sa[4*maxn+10],rank[4*maxn+10],k,tmp[4*maxn+10];
                     ^~~~
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:4:
/usr/include/c++/6/type_traits:1482:12: note:                 template<class> struct std::rank
     struct rank
            ^~~~
/in/foo.cc:37:22: error: reference to 'rank' is ambiguous
  int ri = i + k <= n?rank[i+k]:-1;
                      ^~~~
/in/foo.cc:32:21: note: candidates are: int rank [400010]
 int n,sa[4*maxn+10],rank[4*maxn+10],k,tmp[4*maxn+10];
                     ^~~~
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:4:
/usr/include/c++/6/type_traits:1482:12: note:                 template<class> struct std::rank
     struct rank
            ^~~~
/in/foo.cc:38:22: error: reference to 'rank' is ambiguous
  int rj = j + k <= n?rank[j+k]:-1;
                      ^~~~
/in/foo.cc:32:21: note: candidates are: int rank [400010]
 int n,sa[4*maxn+10],rank[4*maxn+10],k,tmp[4*maxn+10];
                     ^~~~
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:4:
/usr/include/c++/6/type_traits:1482:12: note:                 template<class> struct std::rank
     struct rank
            ^~~~
/in/foo.cc: In function 'void SA(char*)':
/in/foo.cc:45:26: error: reference to 'rank' is ambiguous
  for(int i = 0;i<=n;i++) rank[i] = s[sa[i] = i];
                          ^~~~
/in/foo.cc:32:21: note: candidates are: int rank [400010]
 int n,sa[4*maxn+10],rank[4*maxn+10],k,tmp[4*maxn+10];
                     ^~~~
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:4:
/usr/include/c++/6/type_traits:1482:12: note:                 template<class> struct std::rank
     struct rank
            ^~~~
/in/foo.cc:51:27: error: reference to 'rank' is ambiguous
   for(int i = 0;i<=n;i++) rank[i] = tmp[i];
                           ^~~~
/in/foo.cc:32:21: note: candidates are: int rank [400010]
 int n,sa[4*maxn+10],rank[4*maxn+10],k,tmp[4*maxn+10];
                     ^~~~
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:4:
/usr/include/c++/6/type_traits:1482:12: note:                 template<class> struct std::rank
     struct rank
            ^~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:74:17: warning: unknown conversion type character 0xa in format [-Wformat=]
     printf("%\n");
                 ^

信息

递交者
类型
递交
题目
字符加密Cipher
语言
C++
递交时间
2017-07-18 21:38:01
评测时间
2017-07-18 21:38:01
评测机
分数
0
总耗时
360ms
峰值内存
45.375 MiB