/in/foo.cc: In instantiation of 'void SuffixArray<size>::sais(T, int*, int, bool*, int*, int*, int) [with T = char*; long unsigned int size = 200005ul]':
/in/foo.cc:72:9: required from 'void SuffixArray<size>::init(T, int, int) [with T = char*; long unsigned int size = 200005ul]'
/in/foo.cc:87:26: required from here
/in/foo.cc:46:31: warning: suggest parentheses around '-' inside '>>' [-Wparentheses]
x=(~x&1 ? x>>1 : x-1>>1),sa[sz+x]=cnt-1;
~^~
/in/foo.cc: In instantiation of 'void SuffixArray<size>::inducedSort(T, int*, int, int, int, bool*, int*, int*, int*) [with T = char*; long unsigned int size = 200005ul]':
/in/foo.cc:33:9: required from 'void SuffixArray<size>::sais(T, int*, int, bool*, int*, int*, int) [with T = char*; long unsigned int size = 200005ul]'
/in/foo.cc:72:9: required from 'void SuffixArray<size>::init(T, int, int) [with T = char*; long unsigned int size = 200005ul]'
/in/foo.cc:87:26: required from here
/in/foo.cc:14:39: warning: array subscript has type 'char' [-Wchar-subscripts]
for (int i=0;i<len;i++) bucket[s[i]]++;
~~~~~~^
/in/foo.cc:17:46: warning: array subscript has type 'char' [-Wchar-subscripts]
for (int i=sz-1;i>=0;i--) sa[--cntbuf[s[p[i]]]]=p[i];
~~~~~~^
/in/foo.cc:20:51: warning: array subscript has type 'char' [-Wchar-subscripts]
if (sa[i]>0&&!type[sa[i]-1]) sa[cntbuf[s[sa[i]-1]]++]=sa[i]-1;
~~~~~~^
/in/foo.cc:24:52: warning: array subscript has type 'char' [-Wchar-subscripts]
if (sa[i]>0&&type[sa[i]-1]) sa[--cntbuf[s[sa[i]-1]]]=sa[i]-1;
~~~~~~^
/in/foo.cc: In instantiation of 'void SuffixArray<size>::sais(T, int*, int, bool*, int*, int*, int) [with T = int*; long unsigned int size = 200005ul]':
/in/foo.cc:52:13: required from 'void SuffixArray<size>::sais(T, int*, int, bool*, int*, int*, int) [with T = char*; long unsigned int size = 200005ul]'
/in/foo.cc:72:9: required from 'void SuffixArray<size>::init(T, int, int) [with T = char*; long unsigned int size = 200005ul]'
/in/foo.cc:87:26: required from here
/in/foo.cc:46:31: warning: suggest parentheses around '-' inside '>>' [-Wparentheses]
x=(~x&1 ? x>>1 : x-1>>1),sa[sz+x]=cnt-1;
~^~