paint.cpp: In function 'bool checkcnt(int, std::__cxx11::string)':
paint.cpp:26:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 1;i<s.length();i++) if(s[i-1] == 'X' && s[i]!=s[i-1]) as++;
^
paint.cpp: In function 'bool check(std::__cxx11::string, std::vector<int>, int)':
paint.cpp:34:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0;i<c.size();i++){
^
paint.cpp:35:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(l>=s.length()) return false;
^
paint.cpp:47:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(l>k && l+c[i]-1<s.length() && checkzero(l,l+c[i]-1)){
^
paint.cpp:61:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
return w == c.size() && checkcnt(c.size(),ss);
^
paint.cpp: In function 'bool check2(std::__cxx11::string, std::vector<int>, int, int)':
paint.cpp:69:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(l>=s.length()) return false;
^
paint.cpp:84:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = j+1;i<c.size();i++){
^
paint.cpp:85:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(l>=s.length()) return false;
^
paint.cpp:86:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(l+c[i]-1<s.length() && checkzero(l,l+c[i]-1)){
^
paint.cpp:102:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
return w == c.size() && checkcnt(c.size(),ss);
^
paint.cpp: In function 'std::__cxx11::string solve_puzzle(std::__cxx11::string, std::vector<int>)':
paint.cpp:106:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 1;i<s.length();i++) pref[i] = pref[i-1]+(s[i] == '_');
^
paint.cpp:108:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0;i<s.length();i++){
^
paint.cpp:112:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0;i<s.length();i++){
^
paint.cpp:124:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = 0;j<c.size();j++){
^
paint.cpp:125:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int q = 0;q<s.length();q++){
^
paint.cpp:128:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(u<s.length()-1 && s[u+1] == 'X') continue;
^
paint.cpp:129:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(u<s.length() && q<=i && u>=i && checkzero(q,u)){
^
paint.cpp:114:13: warning: variable 'l' set but not used [-Wunused-but-set-variable]
int l = i;
^
paint.cpp:115:13: warning: variable 'r' set but not used [-Wunused-but-set-variable]
int r = s.length()-i-1;
^
paint.cpp:16:11: warning: unused variable 'first' [-Wunused-variable]
#define f first
^
paint.cpp:116:14: note: in expansion of macro 'f'
bool f = true;
^