Compiler output
prog.cpp: In function 'int main()':
prog.cpp:43:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i = 0; i < s.size(); ++i)
^
prog.cpp:44:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(j = 0; j < s.size(); ++j) {
^
prog.cpp:45:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(i == s.size() - 1 || j == s.size() - 1) rs = min(rs, dp[i][j]);
^
prog.cpp:45:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(i == s.size() - 1 || j == s.size() - 1) rs = min(rs, dp[i][j]);
^
prog.cpp:49:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(next == s.size()) continue;
^