Compiler output
prog.cpp: In function 'int main()':
prog.cpp:50:32: warning: array subscript has type 'char' [-Wchar-subscripts]
if (dist(xs, ys, v[c[i]].first, v[c[i]].second) < dist(xd, yd, v[c[i]].first, v[c[i]].second))
^
prog.cpp:50:47: warning: array subscript has type 'char' [-Wchar-subscripts]
if (dist(xs, ys, v[c[i]].first, v[c[i]].second) < dist(xd, yd, v[c[i]].first, v[c[i]].second))
^
prog.cpp:50:78: warning: array subscript has type 'char' [-Wchar-subscripts]
if (dist(xs, ys, v[c[i]].first, v[c[i]].second) < dist(xd, yd, v[c[i]].first, v[c[i]].second))
^
prog.cpp:50:93: warning: array subscript has type 'char' [-Wchar-subscripts]
if (dist(xs, ys, v[c[i]].first, v[c[i]].second) < dist(xd, yd, v[c[i]].first, v[c[i]].second))
^
prog.cpp:52:35: warning: array subscript has type 'char' [-Wchar-subscripts]
ans += dist(xs, ys, v[c[i]].first, v[c[i]].second);
^
prog.cpp:52:50: warning: array subscript has type 'char' [-Wchar-subscripts]
ans += dist(xs, ys, v[c[i]].first, v[c[i]].second);
^
prog.cpp:53:20: warning: array subscript has type 'char' [-Wchar-subscripts]
xs = v[c[i]].first;
^
prog.cpp:54:20: warning: array subscript has type 'char' [-Wchar-subscripts]
ys = v[c[i]].second;
^
prog.cpp:57:32: warning: array subscript has type 'char' [-Wchar-subscripts]
if (dist(xs, ys, v[c[i]].first, v[c[i]].second) >= dist(xd, yd, v[c[i]].first, v[c[i]].second))
^
prog.cpp:57:47: warning: array subscript has type 'char' [-Wchar-subscripts]
if (dist(xs, ys, v[c[i]].first, v[c[i]].second) >= dist(xd, yd, v[c[i]].first, v[c[i]].second))
^
prog.cpp:57:79: warning: array subscript has type 'char' [-Wchar-subscripts]
if (dist(xs, ys, v[c[i]].first, v[c[i]].second) >= dist(xd, yd, v[c[i]].first, v[c[i]].second))
^
prog.cpp:57:94: warning: array subscript has type 'char' [-Wchar-subscripts]
if (dist(xs, ys, v[c[i]].first, v[c[i]].second) >= dist(xd, yd, v[c[i]].first, v[c[i]].second))
^
prog.cpp:59:35: warning: array subscript has type 'char' [-Wchar-subscripts]
ans += dist(xd, yd, v[c[i]].first, v[c[i]].second);
^
prog.cpp:59:50: warning: array subscript has type 'char' [-Wchar-subscripts]
ans += dist(xd, yd, v[c[i]].first, v[c[i]].second);
^
prog.cpp:60:20: warning: array subscript has type 'char' [-Wchar-subscripts]
xd = v[c[i]].first;
^
prog.cpp:61:20: warning: array subscript has type 'char' [-Wchar-subscripts]
yd = v[c[i]].second;
^