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:17:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for ( int j = i ; j < S.size() ; ++j ) couldW[j] = 1;
~~^~~~~~~~~~
paint.cpp:20: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:40:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for ( int i = 0 ; i < s.size() ; ++i ) {
~~^~~~~~~~~~
paint.cpp:47:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for ( int i = 0 ; i < s.size() ; ++i ) {
~~^~~~~~~~~~
paint.cpp:49:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for ( int j = 0 ; j < c.size() ; ++j ) {
~~^~~~~~~~~~
paint.cpp:57:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for ( int i = 0 ; i < s.size() ; ++i ) {
~~^~~~~~~~~~