/ new_bzoj /

记录详情

Compile Error

/in/foo.cc: In function 'void Get_Rank()':
/in/foo.cc:22:11: warning: array subscript has type 'char' [-Wchar-subscripts]
   sum[s[i]]++;
           ^
/in/foo.cc:26:30: warning: array subscript has type 'char' [-Wchar-subscripts]
   sa[ sum[s[i]-1]+ ++cnt[s[i]] ]=i;
                              ^
/in/foo.cc:31:3: error: reference to 'rank' is ambiguous
   rank[sa[i]]=tot;
   ^~~~
/in/foo.cc:10:21: note: candidates are: int rank [60600]
 int X[M],Y[M],sa[M],rank[M];
                     ^~~~
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:20:8: warning: unused variable 'j' [-Wunused-variable]
  int i,j;
        ^
/in/foo.cc: In function 'void Prefix_Doubling()':
/in/foo.cc:56:9: error: reference to 'rank' is ambiguous
    X[i]=rank[i];
         ^~~~
/in/foo.cc:10:21: note: candidates are: int rank [60600]
 int X[M],Y[M],sa[M],rank[M];
                     ^~~~
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:57:17: error: reference to 'rank' is ambiguous
    Y[i]=i+j>n?0:rank[i+j];
                 ^~~~
/in/foo.cc:10:21: note: candidates are: int rank [60600]
 int X[M],Y[M],sa[M],rank[M];
                     ^~~~
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:66:4: error: reference to 'rank' is ambiguous
    rank[sa[i]]=tot;
    ^~~~
/in/foo.cc:10:21: note: candidates are: int rank [60600]
 int X[M],Y[M],sa[M],rank[M];
                     ^~~~
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:86:11: error: reference to 'rank' is ambiguous
   else if(rank[l]<rank[n+1-r]) putchar(s[l++]);
           ^~~~
/in/foo.cc:10:21: note: candidates are: int rank [60600]
 int X[M],Y[M],sa[M],rank[M];
                     ^~~~
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:86:19: error: reference to 'rank' is ambiguous
   else if(rank[l]<rank[n+1-r]) putchar(s[l++]);
                   ^~~~
/in/foo.cc:10:21: note: candidates are: int rank [60600]
 int X[M],Y[M],sa[M],rank[M];
                     ^~~~
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
            ^~~~

信息

递交者
类型
递交
题目
队列变换
语言
C++
递交时间
2018-06-15 18:10:26
评测时间
2018-06-15 18:10:26
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes