/in/foo.cc: In function 'void dfs(int)':
/in/foo.cc:27:30: warning: array subscript has type 'char' [-Wchar-subscripts]
if(num[s[1][i][0]]!=-1&&num[s[1][j][0]]!=-1)
^
/in/foo.cc:27:51: warning: array subscript has type 'char' [-Wchar-subscripts]
if(num[s[1][i][0]]!=-1&&num[s[1][j][0]]!=-1)
^
/in/foo.cc:35:32: warning: array subscript has type 'char' [-Wchar-subscripts]
if(num[t[1]]==-1) know++;
^
/in/foo.cc:37:32: warning: array subscript has type 'char' [-Wchar-subscripts]
if(num[t[1]]!=num[s[1][i][0]]+num[s[1][j][0]]-(n-1))
^
/in/foo.cc:37:49: warning: array subscript has type 'char' [-Wchar-subscripts]
if(num[t[1]]!=num[s[1][i][0]]+num[s[1][j][0]]-(n-1))
^
/in/foo.cc:37:65: warning: array subscript has type 'char' [-Wchar-subscripts]
if(num[t[1]]!=num[s[1][i][0]]+num[s[1][j][0]]-(n-1))
^
/in/foo.cc:42:29: warning: array subscript has type 'char' [-Wchar-subscripts]
num[t[1]]=num[s[1][i][0]]+num[s[1][j][0]]-(n-1);
^
/in/foo.cc:42:45: warning: array subscript has type 'char' [-Wchar-subscripts]
num[t[1]]=num[s[1][i][0]]+num[s[1][j][0]]-(n-1);
^
/in/foo.cc:42:61: warning: array subscript has type 'char' [-Wchar-subscripts]
num[t[1]]=num[s[1][i][0]]+num[s[1][j][0]]-(n-1);
^
/in/foo.cc:47:32: warning: array subscript has type 'char' [-Wchar-subscripts]
if(num[t[0]]==-1) know++;
^
/in/foo.cc:49:32: warning: array subscript has type 'char' [-Wchar-subscripts]
if(num[t[0]]!=num[s[1][i][0]]+num[s[1][j][0]])
^
/in/foo.cc:49:49: warning: array subscript has type 'char' [-Wchar-subscripts]
if(num[t[0]]!=num[s[1][i][0]]+num[s[1][j][0]])
^
/in/foo.cc:49:65: warning: array subscript has type 'char' [-Wchar-subscripts]
if(num[t[0]]!=num[s[1][i][0]]+num[s[1][j][0]])
^
/in/foo.cc:55:29: warning: array subscript has type 'char' [-Wchar-subscripts]
num[t[0]]=num[s[1][i][0]]+num[s[1][j][0]];
^
/in/foo.cc:55:45: warning: array subscript has type 'char' [-Wchar-subscripts]
num[t[0]]=num[s[1][i][0]]+num[s[1][j][0]];
^
/in/foo.cc:55:61: warning: array subscript has type 'char' [-Wchar-subscripts]
num[t[0]]=num[s[1][i][0]]+num[s[1][j][0]];
^
/in/foo.cc:59:10: warning: unused variable 'c' [-Wunused-variable]
char c=getchar();
^
/in/foo.cc: In function 'int main()':
/in/foo.cc:71:63: warning: array subscript has type 'char' [-Wchar-subscripts]
if(s[i][j].length()==2&&know==0) num[s[i][j][0]]=1,know=1;
^
/in/foo.cc:80:60: warning: array subscript has type 'char' [-Wchar-subscripts]
For(i,2,n) printf("%c=%d ",s[1][i][0],num[s[1][i][0]]);
^
/in/foo.cc:64:28: warning: iteration 1000 invokes undefined behavior [-Waggressive-loop-optimizations]
For(i,1,1001) num[i]=-1;
~~~~~~^~~
/in/foo.cc:13:33: note: within this loop
#define For(i,j,k) for(int i=j;i<=k;i++)
/in/foo.cc:64:9:
For(i,1,1001) num[i]=-1;
~~~~~
/in/foo.cc:64:5: note: in expansion of macro 'For'
For(i,1,1001) num[i]=-1;
^~~