Compiler output
prog.cpp: In function 'int main()':
prog.cpp:23:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define FORN(a, n) for (int i = a; i < n; ++i)
^
prog.cpp:82:2: note: in expansion of macro 'FORN'
FORN(0, s.size()) {
^
prog.cpp:83:39: warning: array subscript has type 'char' [-Wchar-subscripts]
int man1 = manhattan(finger1, v[s[i]]);
^
prog.cpp:84:39: warning: array subscript has type 'char' [-Wchar-subscripts]
int man2 = manhattan(finger2, v[s[i]]);
^
prog.cpp:88:20: warning: array subscript has type 'char' [-Wchar-subscripts]
finger1 = v[s[i]];
^
prog.cpp:91:20: warning: array subscript has type 'char' [-Wchar-subscripts]
finger2 = v[s[i]];
^