Compiler output
prog.cpp: In function 'int main()':
prog.cpp:75:34: warning: array subscript has type 'char' [-Wchar-subscripts]
if(mid==0 && notpossible[fin[i]][fin[i]]==0 || mid && notpossible[mid][fin[i]]==0)
^
prog.cpp:75:42: warning: array subscript has type 'char' [-Wchar-subscripts]
if(mid==0 && notpossible[fin[i]][fin[i]]==0 || mid && notpossible[mid][fin[i]]==0)
^
prog.cpp:75:80: warning: array subscript has type 'char' [-Wchar-subscripts]
if(mid==0 && notpossible[fin[i]][fin[i]]==0 || mid && notpossible[mid][fin[i]]==0)
^
prog.cpp:75:13: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
if(mid==0 && notpossible[fin[i]][fin[i]]==0 || mid && notpossible[mid][fin[i]]==0)
^
prog.cpp: In function 'long long int memo(int, int)':
prog.cpp:94:44: warning: array subscript has type 'char' [-Wchar-subscripts]
if((mask&(1<<i)) && notpossible[fin[last]][fin[i]]==0 && i!=last)
^
prog.cpp:94:52: warning: array subscript has type 'char' [-Wchar-subscripts]
if((mask&(1<<i)) && notpossible[fin[last]][fin[i]]==0 && i!=last)
^