paint.cpp: In function 'unsigned char dp(int, int)':
paint.cpp:22:11: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
22 | if(pos>u.size())return INVALID;
| ~~~^~~~~~~~~
paint.cpp:23:11: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
23 | if(pos==u.size()){
| ~~~^~~~~~~~~~
paint.cpp:24:13: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
24 | if(k==blocos.size())return VALID;
| ~^~~~~~~~~~~~~~~
paint.cpp:37:9: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
37 | if(k<blocos.size()&&(u[pos]=='.'||u[pos]=='X')){
| ~^~~~~~~~~~~~~~
paint.cpp:38:25: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
38 | if(pos+blocos[k]<=u.size())
| ~~~~~~~~~~~~~^~~~~~~~~~
paint.cpp:39:56: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
39 | if((!seg(pos,pos+blocos[k]-1))&&((pos+blocos[k]==u.size())||(u[pos+blocos[k]]!='X'))&&(dp(std::min(pos+blocos[k]+1,(int)u.size()),k+1)==VALID)){
| ~~~~~~~~~~~~~^~~~~~~~~~
paint.cpp: In function 'std::string solve_puzzle(std::string, std::vector<int>)':
paint.cpp:53:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
53 | for(int i=0;i!=u.size();++i){
| ~^~~~~~~~~~
paint.cpp:60:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
60 | for(int i=0;i!=u.size();++i){
| ~^~~~~~~~~~