Compiler output
prog.cpp: In function 'void poz(int, int)':
prog.cpp:17:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (i < S.size())
^
prog.cpp:20:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (S[i] == c[j] && j < c.size() && i < S.size()) i++, j++, u = 1;
^
prog.cpp:20:50: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (S[i] == c[j] && j < c.size() && i < S.size()) i++, j++, u = 1;
^
prog.cpp:21:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (j == c.size()) a[x][y] += c.size();
^
prog.cpp: In function 'int main()':
prog.cpp:43:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (sum >= s[i].size()) return cout << s[i], 0;
^