paint.cpp: In function 'bool galima(int, int)':
paint.cpp:29:11: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
29 | if(i1 >= S.size()){
| ~~~^~~~~~~~~~~
paint.cpp:30:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
30 | return i2 == mas.size();
| ~~~^~~~~~~~~~~~~
paint.cpp:35:11: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
35 | if(i2 < mas.size() && i1 + mas[i2]-1 < S.size()){ // jei galiu deti X-u eile ir jei X-ai isvis telpa
| ~~~^~~~~~~~~~~~
paint.cpp:35:42: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
35 | if(i2 < mas.size() && i1 + mas[i2]-1 < S.size()){ // jei galiu deti X-u eile ir jei X-ai isvis telpa
| ~~~~~~~~~~~~~~~^~~~~~~~~~
paint.cpp:37:38: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
37 | if(kek == 0 && (i1 + mas[i2] == S.size() || S[i1+mas[i2]] != 'X')){ // jei nera trukdziu nei tarpe nei sone
| ~~~~~~~~~~~~~^~~~~~~~~~~
paint.cpp:54:23: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
54 | return dp[i1][i2] = ret;
| ~~~~~~~~~~~^~~~~
paint.cpp: In function 'std::string solve_puzzle(std::string, std::vector<int>)':
paint.cpp:69:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
69 | for(int i = 0; i < s.size(); i++){
| ~~^~~~~~~~~~
paint.cpp:64:9: warning: unused variable 'k' [-Wunused-variable]
64 | int k = c.size();
| ^