paint.cpp: In function 'std::string solve_puzzle(std::string, std::vector<int>)':
paint.cpp:10:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
10 | for(i=0;i<s.size();i++){
| ~^~~~~~~~~
paint.cpp:17:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
17 | for(i=0;i<s.size();i++)
| ~^~~~~~~~~
paint.cpp:30:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
30 | if (nex<=s.size() && sum[dr]-sum[st]==0 && (j==n-1 || s[dr]!='X'))
| ~~~^~~~~~~~~~
paint.cpp:50:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
50 | if (nex<=s.size() && sum[dr]-sum[st]==0 && (j==n-1 || s[dr]!='X')){
| ~~~^~~~~~~~~~
paint.cpp:61:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
61 | for(i=0;i<s.size();i++){
| ~^~~~~~~~~
paint.cpp:65:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
65 | for(i=0;i<s.size();i++){
| ~^~~~~~~~~