onward.cpp: In function 'bool cmp(const string&, const string&, int)':
onward.cpp:9:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < A.size(); i++) for (int j = 0; j < B.size(); j++) {
^
onward.cpp:9:55: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < A.size(); i++) for (int j = 0; j < B.size(); j++) {
^
onward.cpp:12:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (i + k >= A.size() || j + k >= B.size() || A[i + k] != B[j + k]) cur = false;
^
onward.cpp:12:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (i + k >= A.size() || j + k >= B.size() || A[i + k] != B[j + k]) cur = false;
^