Compiler output
prog.cpp: In function 'int back(my, my, int, int)':
prog.cpp:9:7: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(k >= S.length()) return c;
^
prog.cpp:10:15: warning: array subscript has type 'char' [-Wchar-subscripts]
my p = P[S[k]];
^
prog.cpp: In function 'int main()':
prog.cpp:20:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = 0;j<K[i].length();j++) P[K[i][j]] = {i+1,j+1};
^
prog.cpp:20:53: warning: array subscript has type 'char' [-Wchar-subscripts]
for(int j = 0;j<K[i].length();j++) P[K[i][j]] = {i+1,j+1};
^