foo.cpp: In function 'bool pd1()':
foo.cpp:18:38: warning: array subscript has type 'char' [-Wchar-subscripts]
for (llg i=n;i;--i) if (a[b[i][1]]!=-1 && a[b[i][2]]!=-1 && a[b[i][3]]!=-1 && (a[b[i][1]] + a[b[i][2]]) % n != a[b[i][3]] && (a[b[i][1]]+a[b[i][2]]+1) % n!=a[b[i][3]]) return 0;
^
foo.cpp:18:56: warning: array subscript has type 'char' [-Wchar-subscripts]
for (llg i=n;i;--i) if (a[b[i][1]]!=-1 && a[b[i][2]]!=-1 && a[b[i][3]]!=-1 && (a[b[i][1]] + a[b[i][2]]) % n != a[b[i][3]] && (a[b[i][1]]+a[b[i][2]]+1) % n!=a[b[i][3]]) return 0;
^
foo.cpp:18:74: warning: array subscript has type 'char' [-Wchar-subscripts]
for (llg i=n;i;--i) if (a[b[i][1]]!=-1 && a[b[i][2]]!=-1 && a[b[i][3]]!=-1 && (a[b[i][1]] + a[b[i][2]]) % n != a[b[i][3]] && (a[b[i][1]]+a[b[i][2]]+1) % n!=a[b[i][3]]) return 0;
^
foo.cpp:18:93: warning: array subscript has type 'char' [-Wchar-subscripts]
for (llg i=n;i;--i) if (a[b[i][1]]!=-1 && a[b[i][2]]!=-1 && a[b[i][3]]!=-1 && (a[b[i][1]] + a[b[i][2]]) % n != a[b[i][3]] && (a[b[i][1]]+a[b[i][2]]+1) % n!=a[b[i][3]]) return 0;
^
foo.cpp:18:106: warning: array subscript has type 'char' [-Wchar-subscripts]
for (llg i=n;i;--i) if (a[b[i][1]]!=-1 && a[b[i][2]]!=-1 && a[b[i][3]]!=-1 && (a[b[i][1]] + a[b[i][2]]) % n != a[b[i][3]] && (a[b[i][1]]+a[b[i][2]]+1) % n!=a[b[i][3]]) return 0;
^
foo.cpp:18:125: warning: array subscript has type 'char' [-Wchar-subscripts]
for (llg i=n;i;--i) if (a[b[i][1]]!=-1 && a[b[i][2]]!=-1 && a[b[i][3]]!=-1 && (a[b[i][1]] + a[b[i][2]]) % n != a[b[i][3]] && (a[b[i][1]]+a[b[i][2]]+1) % n!=a[b[i][3]]) return 0;
^
foo.cpp:18:140: warning: array subscript has type 'char' [-Wchar-subscripts]
for (llg i=n;i;--i) if (a[b[i][1]]!=-1 && a[b[i][2]]!=-1 && a[b[i][3]]!=-1 && (a[b[i][1]] + a[b[i][2]]) % n != a[b[i][3]] && (a[b[i][1]]+a[b[i][2]]+1) % n!=a[b[i][3]]) return 0;
^
foo.cpp:18:151: warning: array subscript has type 'char' [-Wchar-subscripts]
for (llg i=n;i;--i) if (a[b[i][1]]!=-1 && a[b[i][2]]!=-1 && a[b[i][3]]!=-1 && (a[b[i][1]] + a[b[i][2]]) % n != a[b[i][3]] && (a[b[i][1]]+a[b[i][2]]+1) % n!=a[b[i][3]]) return 0;
^
foo.cpp:18:170: warning: array subscript has type 'char' [-Wchar-subscripts]
for (llg i=n;i;--i) if (a[b[i][1]]!=-1 && a[b[i][2]]!=-1 && a[b[i][3]]!=-1 && (a[b[i][1]] + a[b[i][2]]) % n != a[b[i][3]] && (a[b[i][1]]+a[b[i][2]]+1) % n!=a[b[i][3]]) return 0;
^
foo.cpp: In function 'bool pd2()':
foo.cpp:25:20: warning: array subscript has type 'char' [-Wchar-subscripts]
k=a[b[i][1]]+a[b[i][2]]+k;
^
foo.cpp:25:31: warning: array subscript has type 'char' [-Wchar-subscripts]
k=a[b[i][1]]+a[b[i][2]]+k;
^
foo.cpp:26:22: warning: array subscript has type 'char' [-Wchar-subscripts]
if (a[b[i][3]] != k%n) return 0;
^
foo.cpp: In function 'void dfs(long long int)':
foo.cpp:34:18: warning: array subscript has type 'char' [-Wchar-subscripts]
if (a[b[1][1]]+a[b[1][2]] >= n) return ;
^
foo.cpp:34:29: warning: array subscript has type 'char' [-Wchar-su