Compiler output
prog.cpp: In function 'int main()':
prog.cpp:19:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < c.size(); ++i)
^
prog.cpp:27:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < c.size(); ++i)
^
prog.cpp:43:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < cc.size(); ++i)
^
prog.cpp:48:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = p+1; i < c.size(); ++i)
^
prog.cpp:60:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < cc.size(); ++i)
^
prog.cpp:67:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < cc.size(); ++i)
^
prog.cpp:64:29: warning: '_p' may be used uninitialized in this function [-Wmaybe-uninitialized]
cc = c.substr(_p+1);
^
prog.cpp:51:34: warning: 'p' may be used uninitialized in this function [-Wmaybe-uninitialized]
cc = c.substr(p+1, _p-p-1);
^