Compiler output
prog.cpp: In function 'std::pair<int, int> pos(char)':
prog.cpp:17:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < keys.size(); ++i) {
^
prog.cpp:18:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j = 0; j < keys[i].size(); ++j) {
^
prog.cpp: In function 'void solve()':
prog.cpp:36:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i <= s.length(); ++i) {
^
prog.cpp:45:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < s.length(); ++i) {
^
prog.cpp: In function 'std::pair<int, int> pos(char)':
prog.cpp:24:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^