/ new_bzoj /

记录详情

Compile Error

/in/foo.cc: In function 'void Get_Rank()':
/in/foo.cc:25:11: warning: array subscript has type 'char' [-Wchar-subscripts]
   sum[s[i]]++;
           ^
/in/foo.cc:29:30: warning: array subscript has type 'char' [-Wchar-subscripts]
   sa[ sum[s[i]-1]+ ++cnt[s[i]] ]=i;
                              ^
/in/foo.cc:34:3: error: reference to 'rank' is ambiguous
   rank[sa[i]]=tot;
   ^~~~
/in/foo.cc:8: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/istream:38,
                 from /usr/include/c++/6/sstream:38,
                 from /usr/include/c++/6/complex:45,
                 from /usr/include/c++/6/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52,
                 from /in/foo.cc:1:
/usr/include/c++/6/type_traits:1482:12: note:                 template<class> struct std::rank
     struct rank
            ^~~~
/in/foo.cc:23:8: warning: unused variable 'j' [-Wunused-variable]
  int i,j;
        ^
/in/foo.cc: In function 'void Prefix_Doubling()':
/in/foo.cc:59:9: error: reference to 'rank' is ambiguous
    X[i]=rank[i];
         ^~~~
/in/foo.cc:8: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/istream:38,
                 from /usr/include/c++/6/sstream:38,
                 from /usr/include/c++/6/complex:45,
                 from /usr/include/c++/6/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52,
                 from /in/foo.cc:1:
/usr/include/c++/6/type_traits:1482:12: note:                 template<class> struct std::rank
     struct rank
            ^~~~
/in/foo.cc:60:17: error: reference to 'rank' is ambiguous
    Y[i]=i+j>n?0:rank[i+j];
                 ^~~~
/in/foo.cc:8: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/istream:38,
                 from /usr/include/c++/6/sstream:38,
                 from /usr/include/c++/6/complex:45,
                 from /usr/include/c++/6/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52,
                 from /in/foo.cc:1:
/usr/include/c++/6/type_traits:1482:12: note:                 template<class> struct std::rank
     struct rank
            ^~~~
/in/foo.cc:69:4: error: reference to 'rank' is ambiguous
    rank[sa[i]]=tot;
    ^~~~
/in/foo.cc:8: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/istream:38,
                 from /usr/include/c++/6/sstream:38,
                 from /usr/include/c++/6/complex:45,
                 from /usr/include/c++/6/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52,
                 from /in/foo.cc:1:
/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:76:8: warning: unused variable 'j' [-Wunused-variable]
  int i,j=0;
        ^

信息

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