Compiler output
prog.cpp: In function 'int main()':
prog.cpp:17:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j = 0; j < a[i].size(); j++)
^
prog.cpp:18:23: warning: array subscript has type 'char' [-Wchar-subscripts]
co[a[i][j]] = {i, j};
^
prog.cpp:21:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < s.size(); i++)
^
prog.cpp:24:32: warning: array subscript has type 'char' [-Wchar-subscripts]
int minn = (abs(co[s[i]].x - co[c1].x) + abs(co[s[i]].y - co[c1].y));
^
prog.cpp:24:43: warning: array subscript has type 'char' [-Wchar-subscripts]
int minn = (abs(co[s[i]].x - co[c1].x) + abs(co[s[i]].y - co[c1].y));
^
prog.cpp:24:61: warning: array subscript has type 'char' [-Wchar-subscripts]
int minn = (abs(co[s[i]].x - co[c1].x) + abs(co[s[i]].y - co[c1].y));
^
prog.cpp:24:72: warning: array subscript has type 'char' [-Wchar-subscripts]
int minn = (abs(co[s[i]].x - co[c1].x) + abs(co[s[i]].y - co[c1].y));
^
prog.cpp:25:24: warning: array subscript has type 'char' [-Wchar-subscripts]
if (abs(co[s[i]].x - co[c2].x) + abs(co[s[i]].y - co[c2].y) < minn)
^
prog.cpp:25:35: warning: array subscript has type 'char' [-Wchar-subscripts]
if (abs(co[s[i]].x - co[c2].x) + abs(co[s[i]].y - co[c2].y) < minn)
^
prog.cpp:25:53: warning: array subscript has type 'char' [-Wchar-subscripts]
if (abs(co[s[i]].x - co[c2].x) + abs(co[s[i]].y - co[c2].y) < minn)
^
prog.cpp:25:64: warning: array subscript has type 'char' [-Wchar-subscripts]
if (abs(co[s[i]].x - co[c2].x) + abs(co[s[i]].y - co[c2].y) < minn)
^
prog.cpp:28:31: warning: array subscript has type 'char' [-Wchar-subscripts]
minn = abs(co[s[i]].x - co[c2].x) + abs(co[s[i]].y - co[c2].y);
^
prog.cpp:28:42: warning: array subscript has type 'char' [-Wchar-subscripts]
minn = abs(co[s[i]].x - co[c2].x) + abs(co[s[i]].y - co[c2].y);
^
prog.cpp:28:60: warning: array subscript has type 'char' [-Wchar-subscripts]
minn = abs(co[s[i]].x - co[c2].x) + abs(co[s[i]].y - co[c2].y);
^
prog.cpp:28:71: warning: array subscript has type 'char' [-Wchar-subscripts]
minn = abs(co[s[i]].x - co[c2].x) + abs(co[s[i]].y - co[c2].y);
^