/in/foo.cc: In function 'int main()':
/in/foo.cc:18:21: warning: array subscript has type 'char' [-Wchar-subscripts]
if(s[p]==s[next[p]]){
^
/in/foo.cc:19:19: warning: array subscript has type 'char' [-Wchar-subscripts]
s[p]=s[next[p]]=0;
^
/in/foo.cc:21:20: warning: array subscript has type 'char' [-Wchar-subscripts]
p=next[next[p]];
^
/in/foo.cc:24:17: warning: array subscript has type 'char' [-Wchar-subscripts]
next[last[p]]=next[next[p]];
^
/in/foo.cc:24:31: warning: array subscript has type 'char' [-Wchar-subscripts]
next[last[p]]=next[next[p]];
^
/in/foo.cc:25:20: warning: array subscript has type 'char' [-Wchar-subscripts]
if(next[next[p]]!=-1)
^
/in/foo.cc:26:22: warning: array subscript has type 'char' [-Wchar-subscripts]
last[next[next[p]]]=last[p];
^
/in/foo.cc:26:23: warning: array subscript has type 'char' [-Wchar-subscripts]
last[next[next[p]]]=last[p];
^