foo.cc: In function 'void init()':
foo.cc:33:20: warning: array subscript has type 'char' [-Wchar-subscripts]
33 | if(!vis[a[i]]) d[k++]=a[i],vis[a[i]]=1;
| ~~~^
foo.cc:33:43: warning: array subscript has type 'char' [-Wchar-subscripts]
33 | if(!vis[a[i]]) d[k++]=a[i],vis[a[i]]=1;
| ~~~^
foo.cc:34:20: warning: array subscript has type 'char' [-Wchar-subscripts]
34 | if(!vis[b[i]]) d[k++]=b[i],vis[b[i]]=1;
| ~~~^
foo.cc:34:43: warning: array subscript has type 'char' [-Wchar-subscripts]
34 | if(!vis[b[i]]) d[k++]=b[i],vis[b[i]]=1;
| ~~~^
foo.cc:35:20: warning: array subscript has type 'char' [-Wchar-subscripts]
35 | if(!vis[c[i]]) d[k++]=c[i],vis[c[i]]=1;
| ~~~^
foo.cc:35:43: warning: array subscript has type 'char' [-Wchar-subscripts]
35 | if(!vis[c[i]]) d[k++]=c[i],vis[c[i]]=1;
| ~~~^
foo.cc: In function 'bool check()':
foo.cc:41:17: warning: array subscript has type 'char' [-Wchar-subscripts]
41 | if(f[a[i]]==-1||f[b[i]]==-1||f[c[i]]==-1) p=-1;
| ~~~^
foo.cc:41:30: warning: array subscript has type 'char' [-Wchar-subscripts]
41 | if(f[a[i]]==-1||f[b[i]]==-1||f[c[i]]==-1) p=-1;
| ~~~^
foo.cc:41:43: warning: array subscript has type 'char' [-Wchar-subscripts]
41 | if(f[a[i]]==-1||f[b[i]]==-1||f[c[i]]==-1) p=-1;
| ~~~^
foo.cc:44:26: warning: array subscript has type 'char' [-Wchar-subscripts]
44 | if((f[a[i]]+f[b[i]])%n==f[c[i]]) { //这一位无进位
| ~~~^
foo.cc:44:34: warning: array subscript has type 'char' [-Wchar-subscripts]
44 | if((f[a[i]]+f[b[i]])%n==f[c[i]]) { //这一位无进位
| ~~~^
foo.cc:44:46: warning: array subscript has type 'char' [-Wchar-subscripts]
44 | if((f[a[i]]+f[b[i]])%n==f[c[i]]) { //这一位无进位
| ~~~^
foo.cc:45:29: warning: array subscript has type 'char' [-Wchar-subscripts]
45 | p=(f[a[i]]+f[b[i]])/n;
| ~~~^
foo.cc:45:37: warning: array subscript has type 'char' [-Wchar-subscripts]
45 | p=(f[a[i]]+f[b[i]])/n;
| ~~~^
foo.cc:46:33: warning: array subscript has type 'char' [-Wchar-subscripts]
46 | } else if((f[a[i]]+f[b[i]]+1)%n==f[c[i]]) { //这一位有进位
| ~~~^
foo.cc:46:41: warning: array subscript has type 'char' [-Wchar-subscripts]
46 | } else if((f[a[i]]+f[b[i]]+1)%n==f[c[i]]) { //这一位有进位
| ~~~^
foo.cc:46:55: warning: array subscript has type 'char' [-Wchar-subscripts]
46 | } else if((f[a[i]]+f[b[i]]+1)%n==f[c[i]]) { //这一位有进位
| ~~~^
foo.cc:47:29: warning: array subscript has type 'char' [-Wchar-subscripts]
47 | p=(f[a[i]]+f[b[i]]+1)/n;
| ~~~^
foo.cc:47:37: warning: array subscript has type 'char' [-Wchar-subscripts]
47 | p=(f[a[i]]+f[b[i]]+1)/n;
| ~~~^
foo.cc:50:26: warning: array subscript has type 'char' [-Wchar-subscripts]
50 | if((f[a[i]]+f[b[i]]+p)%n==f[c[i]]) {
| ~~~^
foo.cc:50:34: warning: array subscript has type 'char' [-Wchar-subscripts]
50 | if((f[a[i]]+f[b[i]]+p)%n==f[c[i]]) {
| ~~~^
foo.cc:50:48: warning: array subscript has type 'char' [-Wchar-subscripts]
50 | if((f[a[i]]+f[b[i]]+p)%n==f[c[i]]) {
| ~~~^
foo.cc:51:29: warning: array subscript has type 'char' [-Wchar-subscripts]
51 | p=(f[a[i]]+f[b[i]]+p)/n;
| ~~~^
foo.cc:51:37: warning: array subscript has type 'char' [-Wchar-subscripts]
51 | p=(f[a[i]]+f[b[i]]+p)/n;
| ~~~^
foo.cc: In function 'int main()':
foo.cc:76:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
76 | scanf("%d%s%s%s",&n,a+1,b+1,c+1);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务