/in/foo.cc: In function 'int check(int)':
/in/foo.cc:36:21: warning: array subscript has type 'char' [-Wchar-subscripts]
if(num[p[2][now]]!=-1)
^
/in/foo.cc:38:51: warning: array subscript has type 'char' [-Wchar-subscripts]
if((a[0][now]+a[1][now])%k==(num[p[2][now]]-a[2][now]+k)%k)
^
/in/foo.cc: In function 'int search(int, int)':
/in/foo.cc:98:26: warning: array subscript has type 'char' [-Wchar-subscripts]
num[p[2][now]]=a[2][now];
^
/in/foo.cc:109:26: warning: array subscript has type 'char' [-Wchar-subscripts]
num[p[2][now]]=-1;
^
/in/foo.cc:126:22: warning: array subscript has type 'char' [-Wchar-subscripts]
if(num[p[md][now]]!=-1)
^
/in/foo.cc:128:34: warning: array subscript has type 'char' [-Wchar-subscripts]
a[md][now]=num[p[md][now]];
^
/in/foo.cc:136:27: warning: array subscript has type 'char' [-Wchar-subscripts]
num[p[md][now]]=i;
^
/in/foo.cc:142:27: warning: array subscript has type 'char' [-Wchar-subscripts]
num[p[md][now]]=-1;
^