paint.cpp: In function 'int solve(int, int, int)':
paint.cpp:16:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if ( clue == C.size() && i <= S.size() ) {
~~~~~^~~~~~~~~~~
paint.cpp:16:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if ( clue == C.size() && i <= S.size() ) {
~~^~~~~~~~~~~
paint.cpp:18:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for ( int j = i ; j < S.size() ; ++j )
~~^~~~~~~~~~
paint.cpp:21:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for ( int j = i ; j < S.size() ; ++j )
~~^~~~~~~~~~
paint.cpp:26:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if ( i >= S.size() ) return 0 ;
~~^~~~~~~~~~~
paint.cpp: In function 'std::__cxx11::string solve_puzzle(std::__cxx11::string, std::vector<int>)':
paint.cpp:46:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for ( int i = 0 ; i < s.size() ; ++i ) {
~~^~~~~~~~~~
paint.cpp:53:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for ( int i = 0 ; i < s.size() ; ++i ) {
~~^~~~~~~~~~
paint.cpp:55:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for ( int j = 0 ; j < c.size() ; ++j ) {
~~^~~~~~~~~~
paint.cpp:63:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for ( int i = 0 ; i < s.size() ; ++i ) {
~~^~~~~~~~~~