Compiler output
prog.cpp: In function 'int main()':
prog.cpp:41:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i = 0; i < strlen(c); i++)
^
prog.cpp:43: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:43: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:43: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:43: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:43: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:43: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:43: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:43: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:45:32: warning: array subscript has type 'char' [-Wchar-subscripts]
int x = dist(lin[st], col[st], lin[c[i]], col[c[i]]);
^
prog.cpp:45:41: warning: array subscript has type 'char' [-Wchar-subscripts]
int x = dist(lin[st], col[st], lin[c[i]], col[c[i]]);
^
prog.cpp:45:52: warning: array subscript has type 'char' [-Wchar-subscripts]
int x = dist(lin[st], col[st], lin[c[i]], col[c[i]]);
^
prog.cpp:45:63: warning: array subscript has type 'char' [-Wchar-subscripts]
int x = dist(lin[st], col[st], lin[c[i]], col[c[i]]);
^
prog.cpp:51:32: warning: array subscript has type 'char' [-Wchar-subscripts]
int x = dist(lin[dr], col[dr], lin[c[i]], col[c[i]]);
^
prog.cpp:51:41: warning: array subscript has type 'char' [-Wchar-subscripts]
int x = dist(lin[dr], col[dr], lin[c[i]], col[c[i]]);
^
prog.cpp:51:52: warning: array subscript has type 'char' [-Wchar-subscripts]
int x = dist(lin[dr], col[dr], lin[c[i]], col[c[i]]);
^
prog.cpp:51:63: warning: array subscript has type 'char' [-Wchar-subscripts]
int x = dist(lin[dr], col[dr], lin[c[i]], col[c[i]]);
^