paint.cpp: In function 'bool solvable(std::__cxx11::string&, std::__cxx11::string&, std::__cxx11::string&, int, int)':
paint.cpp:16:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (spos == s.size()) return cpos == c.size();
~~~~~^~~~~~~~~~~
paint.cpp:16:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (spos == s.size()) return cpos == c.size();
~~~~~^~~~~~~~~~~
paint.cpp:17:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (cpos < c.size() && s[spos] != c[cpos] && s[spos] != '.') {
~~~~~^~~~~~~~~~
paint.cpp:21:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (cpos < c.size()) {
~~~~~^~~~~~~~~~
paint.cpp:31:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (s[spos] != 'X' && (cpos == c.size() || c[cpos] == '_') && solvable(s,res,c, spos+1, cpos)){
~~~~~^~~~~~~~~~~
paint.cpp: In function 'std::__cxx11::string solve_puzzle(std::__cxx11::string, std::vector<int>)':
paint.cpp:45:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < c.size(); i++){
~~^~~~~~~~~~