paint.cpp: In function 'std::__cxx11::string solve_puzzle(std::__cxx11::string, std::vector<int>)':
paint.cpp:3:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define rep(i,n)for(int i=0;i<(n);i++)
^
paint.cpp:11:2: note: in expansion of macro 'rep'
rep(i,s.size()){
^~~
paint.cpp:3:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define rep(i,n)for(int i=0;i<(n);i++)
^
paint.cpp:17:2: note: in expansion of macro 'rep'
rep(i,s.size())rep(j,K+1){
^~~
paint.cpp:25:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(nx<=s.size()&&sum[r]-sum[l]==0&&(j==K-1||s[r]!='X')){
~~^~~~~~~~~~
paint.cpp:39:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(nx<=s.size()&&sum[r]-sum[l]==0&&(j==K-1||s[r]!='X')){
~~^~~~~~~~~~
paint.cpp:3:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define rep(i,n)for(int i=0;i<(n);i++)
^
paint.cpp:48:2: note: in expansion of macro 'rep'
rep(i,s.size()){
^~~
paint.cpp:3:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define rep(i,n)for(int i=0;i<(n);i++)
^
paint.cpp:52:2: note: in expansion of macro 'rep'
rep(i,s.size()){
^~~