Compiler output
prog.cpp: In function 'int main()':
prog.cpp:18:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0; i<s.size(); i++)
^
prog.cpp:23:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0; i<s.size(); i++)
^
prog.cpp:28:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0; i<s.size(); i++)
^
prog.cpp:52:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(dp[k-1][l][j]!=-1)
^
prog.cpp:59:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(dp[k-1][l][r]!=-1)
^