Compiler output
prog.cpp: In function 'int main()':
prog.cpp:31:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j = 0; j < strlen(qwerty[i]); j++) {
^
prog.cpp:32:30: warning: array subscript has type 'char' [-Wchar-subscripts]
keys[qwerty[i][j]] = make_pair(i, j);
^
prog.cpp:33:28: warning: array subscript has type 'char' [-Wchar-subscripts]
ri[qwerty[i][j]] = j >= (strlen(qwerty[i]) / 2);
^
prog.cpp:33:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
ri[qwerty[i][j]] = j >= (strlen(qwerty[i]) / 2);
^
prog.cpp:41:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < input.size(); i++) {
^
prog.cpp:43:29: warning: array subscript has type 'char' [-Wchar-subscripts]
point to = keys[next];
^
prog.cpp:52:24: warning: array subscript has type 'char' [-Wchar-subscripts]
if (ri[next])
^