Compiler output
prog.cpp: In function 'int main()':
prog.cpp:48:23: warning: array subscript has type 'char' [-Wchar-subscripts]
if(dist(lin[st], col[st], lin[c[i]], col[c[i]]) < dist(lin[dr], col[dr], lin[c[i]], col[c[i]]))
^
prog.cpp:48:32: warning: array subscript has type 'char' [-Wchar-subscripts]
if(dist(lin[st], col[st], lin[c[i]], col[c[i]]) < dist(lin[dr], col[dr], lin[c[i]], col[c[i]]))
^
prog.cpp:48:43: warning: array subscript has type 'char' [-Wchar-subscripts]
if(dist(lin[st], col[st], lin[c[i]], col[c[i]]) < dist(lin[dr], col[dr], lin[c[i]], col[c[i]]))
^
prog.cpp:48:54: warning: array subscript has type 'char' [-Wchar-subscripts]
if(dist(lin[st], col[st], lin[c[i]], col[c[i]]) < dist(lin[dr], col[dr], lin[c[i]], col[c[i]]))
^
prog.cpp:48:70: warning: array subscript has type 'char' [-Wchar-subscripts]
if(dist(lin[st], col[st], lin[c[i]], col[c[i]]) < dist(lin[dr], col[dr], lin[c[i]], col[c[i]]))
^
prog.cpp:48:79: warning: array subscript has type 'char' [-Wchar-subscripts]
if(dist(lin[st], col[st], lin[c[i]], col[c[i]]) < dist(lin[dr], col[dr], lin[c[i]], col[c[i]]))
^
prog.cpp:48:90: warning: array subscript has type 'char' [-Wchar-subscripts]
if(dist(lin[st], col[st], lin[c[i]], col[c[i]]) < dist(lin[dr], col[dr], lin[c[i]], col[c[i]]))
^
prog.cpp:48:101: warning: array subscript has type 'char' [-Wchar-subscripts]
if(dist(lin[st], col[st], lin[c[i]], col[c[i]]) < dist(lin[dr], col[dr], lin[c[i]], col[c[i]]))
^
prog.cpp:50:32: warning: array subscript has type 'char' [-Wchar-subscripts]
int x = dist(lin[st], col[st], lin[c[i]], col[c[i]]);
^
prog.cpp:50:41: warning: array subscript has type 'char' [-Wchar-subscripts]
int x = dist(lin[st], col[st], lin[c[i]], col[c[i]]);
^
prog.cpp:50:52: warning: array subscript has type 'char' [-Wchar-subscripts]
int x = dist(lin[st], col[st], lin[c[i]], col[c[i]]);
^
prog.cpp:50:63: warning: array subscript has type 'char' [-Wchar-subscripts]
int x = dist(lin[st], col[st], lin[c[i]], col[c[i]]);
^
prog.cpp:56:32: warning: array subscript has type 'char' [-Wchar-subscripts]
int x = dist(lin[dr], col[dr], lin[c[i]], col[c[i]]);
^
prog.cpp:56:41: warning: array subscript has type 'char' [-Wchar-subscripts]
int x = dist(lin[dr], col[dr], lin[c[i]], col[c[i]]);
^
prog.cpp:56:52: warning: array subscript has type 'char' [-Wchar-subscripts]
int x = dist(lin[dr], col[dr], lin[c[i]], col[c[i]]);
^
prog.cpp:56:63: warning: array subscript has type 'char' [-Wchar-subscripts]
int x = dist(lin[dr], col[dr], lin[c[i]], col[c[i]]);
^