Compiler output
prog.cpp: In function 'int main()':
prog.cpp:8:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i=0;i<s.size();++i) L[s[i]]=make_pair(0,i);
^
prog.cpp:8:35: warning: array subscript has type 'char' [-Wchar-subscripts]
for(i=0;i<s.size();++i) L[s[i]]=make_pair(0,i);
^
prog.cpp:10:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i=0;i<s.size();++i) L[s[i]]=make_pair(1,i);
^
prog.cpp:10:35: warning: array subscript has type 'char' [-Wchar-subscripts]
for(i=0;i<s.size();++i) L[s[i]]=make_pair(1,i);
^
prog.cpp:12:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i=0;i<s.size();++i) L[s[i]]=make_pair(2,i);
^
prog.cpp:12:35: warning: array subscript has type 'char' [-Wchar-subscripts]
for(i=0;i<s.size();++i) L[s[i]]=make_pair(2,i);
^
prog.cpp:15:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i=0;i<s.size();++i)
^
prog.cpp:17:19: warning: array subscript has type 'char' [-Wchar-subscripts]
if(abs(L[x].first-L[s[i]].first)+abs(L[x].second-L[s[i]].second)<abs(L[y].first-L[s[i]].first)+abs(L[y].second-L[s[i]].second))
^
prog.cpp:17:33: warning: array subscript has type 'char' [-Wchar-subscripts]
if(abs(L[x].first-L[s[i]].first)+abs(L[x].second-L[s[i]].second)<abs(L[y].first-L[s[i]].first)+abs(L[y].second-L[s[i]].second))
^
prog.cpp:17:49: warning: array subscript has type 'char' [-Wchar-subscripts]
if(abs(L[x].first-L[s[i]].first)+abs(L[x].second-L[s[i]].second)<abs(L[y].first-L[s[i]].first)+abs(L[y].second-L[s[i]].second))
^
prog.cpp:17:64: warning: array subscript has type 'char' [-Wchar-subscripts]
if(abs(L[x].first-L[s[i]].first)+abs(L[x].second-L[s[i]].second)<abs(L[y].first-L[s[i]].first)+abs(L[y].second-L[s[i]].second))
^
prog.cpp:17:81: warning: array subscript has type 'char' [-Wchar-subscripts]
if(abs(L[x].first-L[s[i]].first)+abs(L[x].second-L[s[i]].second)<abs(L[y].first-L[s[i]].first)+abs(L[y].second-L[s[i]].second))
^
prog.cpp:17:95: warning: array subscript has type 'char' [-Wchar-subscripts]
if(abs(L[x].first-L[s[i]].first)+abs(L[x].second-L[s[i]].second)<abs(L[y].first-L[s[i]].first)+abs(L[y].second-L[s[i]].second))
^
prog.cpp:17:111: warning: array subscript has type 'char' [-Wchar-subscripts]
if(abs(L[x].first-L[s[i]].first)+abs(L[x].second-L[s[i]].second)<abs(L[y].first-L[s[i]].first)+abs(L[y].second-L[s[i]].second))
^
prog.cpp:17:126: warning: array subscript has type 'char' [-Wchar-subscripts]
if(abs(L[x].first-L[s[i]].first)+abs(L[x].second-L[s[i]].second)<abs(L[y].first-L[s[i]].first)+abs(L[y].second-L[s[i]].second))
^
prog.cpp:19:25: warning: array subscript has type 'char' [-Wchar-subscripts]
sol+=abs(L[x].first-L[s[i]].first)+abs(L[x].second-L[s[i]].second);
^
prog.cpp:19:39: warning: array subscript has type 'char' [-Wchar-subscripts]
sol+=abs(L[x].first-L[s[i]].first)+abs(L[x].second-L[s[i]].second);
^
prog.cpp:19:55: warning: array subscript has type 'char' [-Wchar-subscripts]
sol+=abs(L[x].first-L[s[i]].first)+abs(L[x].second-L[s[i]].second);
^
prog.cpp:19:70: warning: array subscript has type 'char' [-Wchar-subscripts]
sol+=abs(L[x].first-L[s[i]].first)+abs(L[x].second-L[s[i]].second);
^
prog.cpp:24:25: warning: array subscript has type 'char' [-Wchar-subscripts]
sol+=abs(L[y].first-L[s[i]].first)+abs(L[y].second-L[s[i]].second);
^
prog.cpp:24:39: warning: array subscript has type 'char' [-Wchar-subscripts]
sol+=abs(L[y].first-L[s[i]].first)+abs(L[y].second-L[s[i]].second);
^
prog.cpp:24:55: warning: array subscript has type 'char' [-Wchar-subscripts]
sol+=abs(L[y].first-L[s[i]].first)+abs(L[y].second-L[s[i]].second);
^
prog.cpp:24:70: warning: array subscript has type 'char' [-Wchar-subscripts]
sol+=abs(L[y].first-L[s[i]].first)+abs(L[y].second-L[s[i]].second);
^