foo.cc: In function 'void dfs(int, int, int)':
foo.cc:48:23: warning: array subscript has type 'char' [-Wchar-subscripts]
48 | if(ans[s[1][i]]>=0&&ans[s[2][i]]>=0&&ans[s[3][i]]>=0)
| ^
foo.cc:48:40: warning: array subscript has type 'char' [-Wchar-subscripts]
48 | if(ans[s[1][i]]>=0&&ans[s[2][i]]>=0&&ans[s[3][i]]>=0)
| ^
foo.cc:48:57: warning: array subscript has type 'char' [-Wchar-subscripts]
48 | if(ans[s[1][i]]>=0&&ans[s[2][i]]>=0&&ans[s[3][i]]>=0)
| ^
foo.cc:49:28: warning: array subscript has type 'char' [-Wchar-subscripts]
49 | if((ans[s[1][i]]+ans[s[2][i]])%n!=ans[s[3][i]]&&(ans[s[1][i]]+ans[s[2][i]]+1)%n!=ans[s[3][i]])
| ^
foo.cc:49:41: warning: array subscript has type 'char' [-Wchar-subscripts]
49 | if((ans[s[1][i]]+ans[s[2][i]])%n!=ans[s[3][i]]&&(ans[s[1][i]]+ans[s[2][i]]+1)%n!=ans[s[3][i]])
| ^
foo.cc:49:58: warning: array subscript has type 'char' [-Wchar-subscripts]
49 | if((ans[s[1][i]]+ans[s[2][i]])%n!=ans[s[3][i]]&&(ans[s[1][i]]+ans[s[2][i]]+1)%n!=ans[s[3][i]])
| ^
foo.cc:49:73: warning: array subscript has type 'char' [-Wchar-subscripts]
49 | if((ans[s[1][i]]+ans[s[2][i]])%n!=ans[s[3][i]]&&(ans[s[1][i]]+ans[s[2][i]]+1)%n!=ans[s[3][i]])
| ^
foo.cc:49:86: warning: array subscript has type 'char' [-Wchar-subscripts]
49 | if((ans[s[1][i]]+ans[s[2][i]])%n!=ans[s[3][i]]&&(ans[s[1][i]]+ans[s[2][i]]+1)%n!=ans[s[3][i]])
| ^
foo.cc:49:105: warning: array subscript has type 'char' [-Wchar-subscripts]
49 | if((ans[s[1][i]]+ans[s[2][i]])%n!=ans[s[3][i]]&&(ans[s[1][i]]+ans[s[2][i]]+1)%n!=ans[s[3][i]])
| ^
[Hydro](https://hydro.ac)提供评测服务