foo.cc: In function 'bool check(int)':
foo.cc:10:14: warning: array subscript has type 'char' [-Wchar-subscripts]
10 | if(p[a[1][i]]&&p[a[2][i]]&&p[a[3][i]]&&
| ~~~~~~^
foo.cc:10:26: warning: array subscript has type 'char' [-Wchar-subscripts]
10 | if(p[a[1][i]]&&p[a[2][i]]&&p[a[3][i]]&&
| ~~~~~~^
foo.cc:10:38: warning: array subscript has type 'char' [-Wchar-subscripts]
10 | if(p[a[1][i]]&&p[a[2][i]]&&p[a[3][i]]&&
| ~~~~~~^
foo.cc:11:13: warning: array subscript has type 'char' [-Wchar-subscripts]
11 | ((c[a[1][i]]+c[a[2][i]])%n!=c[a[3][i]])&&
| ~~~~~~^
foo.cc:11:24: warning: array subscript has type 'char' [-Wchar-subscripts]
11 | ((c[a[1][i]]+c[a[2][i]])%n!=c[a[3][i]])&&
| ~~~~~~^
foo.cc:11:39: warning: array subscript has type 'char' [-Wchar-subscripts]
11 | ((c[a[1][i]]+c[a[2][i]])%n!=c[a[3][i]])&&
| ~~~~~~^
foo.cc:12:13: warning: array subscript has type 'char' [-Wchar-subscripts]
12 | ((c[a[1][i]]+c[a[2][i]]+1)%n!=c[a[3][i]]))return 1;
| ~~~~~~^
foo.cc:12:24: warning: array subscript has type 'char' [-Wchar-subscripts]
12 | ((c[a[1][i]]+c[a[2][i]]+1)%n!=c[a[3][i]]))return 1;
| ~~~~~~^
foo.cc:12:41: warning: array subscript has type 'char' [-Wchar-subscripts]
12 | ((c[a[1][i]]+c[a[2][i]]+1)%n!=c[a[3][i]]))return 1;
| ~~~~~~^
foo.cc: In function 'void ser(int, int)':
foo.cc:27:17: warning: array subscript has type 'char' [-Wchar-subscripts]
27 | int k=c[a[1][y]]+c[a[2][y]]+jin[y];
| ~~~~~~^
foo.cc:27:28: warning: array subscript has type 'char' [-Wchar-subscripts]
27 | int k=c[a[1][y]]+c[a[2][y]]+jin[y];
| ~~~~~~^
foo.cc:33:15: warning: array subscript has type 'char' [-Wchar-subscripts]
33 | if(!p[a[x][y]]&&!vis[k])
| ~~~~~~^
foo.cc:36:12: warning: array subscript has type 'char' [-Wchar-subscripts]
36 | c[a[x][y]]=k;
| ~~~~~~^
foo.cc:37:12: warning: array subscript has type 'char' [-Wchar-subscripts]
37 | p[a[x][y]]=1;
| ~~~~~~^
foo.cc:40:12: warning: array subscript has type 'char' [-Wchar-subscripts]
40 | c[a[x][y]]=0;
| ~~~~~~^
foo.cc:41:12: warning: array subscript has type 'char' [-Wchar-subscripts]
41 | p[a[x][y]]=0;
| ~~~~~~^
foo.cc:45:19: warning: array subscript has type 'char' [-Wchar-subscripts]
45 | else if(p[a[x][y]]&&vis[k]&&c[a[x][y]]==k)
| ~~~~~~^
foo.cc:45:39: warning: array subscript has type 'char' [-Wchar-subscripts]
45 | else if(p[a[x][y]]&&vis[k]&&c[a[x][y]]==k)
| ~~~~~~^
foo.cc:56:19: warning: array subscript has type 'char' [-Wchar-subscripts]
56 | else if(!p[a[x][y]])
| ~~~~~~^
foo.cc:63:13: warning: array subscript has type 'char' [-Wchar-subscripts]
63 | c[a[x][y]]=i;
| ~~~~~~^
foo.cc:64:13: warning: array subscript has type 'char' [-Wchar-subscripts]
64 | p[a[x][y]]=1;
| ~~~~~~^
foo.cc:67:13: warning: array subscript has type 'char' [-Wchar-subscripts]
67 | c[a[x][y]]=0;
| ~~~~~~^
foo.cc:68:13: warning: array subscript has type 'char' [-Wchar-subscripts]
68 | p[a[x][y]]=0;
| ~~~~~~^
foo.cc: In function 'int main()':
foo.cc:77:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
77 | scanf("%d ",&n);
| ~~~~~^~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务