foo.cc: In function 'bool ok_()':
foo.cc:10:18: warning: array subscript has type 'char' [-Wchar-subscripts]
if(t[a[i]]==-1 || t[b[i]]==-1 || t[c[i]]==-1)
^
foo.cc:10:33: warning: array subscript has type 'char' [-Wchar-subscripts]
if(t[a[i]]==-1 || t[b[i]]==-1 || t[c[i]]==-1)
^
foo.cc:10:48: warning: array subscript has type 'char' [-Wchar-subscripts]
if(t[a[i]]==-1 || t[b[i]]==-1 || t[c[i]]==-1)
^
foo.cc:12:19: warning: array subscript has type 'char' [-Wchar-subscripts]
if((t[a[i]]+t[b[i]])%n!=t[c[i]])
^
foo.cc:12:27: warning: array subscript has type 'char' [-Wchar-subscripts]
if((t[a[i]]+t[b[i]])%n!=t[c[i]])
^
foo.cc:12:39: warning: array subscript has type 'char' [-Wchar-subscripts]
if((t[a[i]]+t[b[i]])%n!=t[c[i]])
^
foo.cc:13:23: warning: array subscript has type 'char' [-Wchar-subscripts]
if((t[a[i]]+t[b[i]]+1)%n!=t[c[i]])
^
foo.cc:13:31: warning: array subscript has type 'char' [-Wchar-subscripts]
if((t[a[i]]+t[b[i]]+1)%n!=t[c[i]])
^
foo.cc:13:45: warning: array subscript has type 'char' [-Wchar-subscripts]
if((t[a[i]]+t[b[i]]+1)%n!=t[c[i]])
^
foo.cc: In function 'void Try_()':
foo.cc:23:21: warning: array subscript has type 'char' [-Wchar-subscripts]
int s=t[a[i]]+t[b[i]]+jw;
^
foo.cc:23:29: warning: array subscript has type 'char' [-Wchar-subscripts]
int s=t[a[i]]+t[b[i]]+jw;
^
foo.cc:24:18: warning: array subscript has type 'char' [-Wchar-subscripts]
if(t[c[i]]!=s%n)
^
foo.cc: In function 'int main()':
foo.cc:57:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%s%s%s",a+1,b+1,c+1);
~~~~~^~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务