paint.cpp: In function 'long long int recur(long long int, long long int)':
paint.cpp:12:14: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
12 | if(s_idx == S.size() && c_idx == C.size()) { //works
| ~~~~~~^~~~~~~~~~~
paint.cpp:12:35: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
12 | if(s_idx == S.size() && c_idx == C.size()) { //works
| ~~~~~~^~~~~~~~~~~
paint.cpp:15:14: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
15 | if(s_idx >= S.size() || c_idx > C.size()) { //out of bounds
| ~~~~~~^~~~~~~~~~~
paint.cpp:15:35: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
15 | if(s_idx >= S.size() || c_idx > C.size()) { //out of bounds
| ~~~~~~^~~~~~~~~~
paint.cpp:34:13: warning: unused variable 'ok' [-Wunused-variable]
34 | int ok = recur(s_idx + 1, c_idx);
| ^~
paint.cpp:46:29: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
46 | if(s_idx + C[c_idx] - 1 < S.size()) {
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
paint.cpp:51:10: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
51 | if(x == white.size() || white[x] >= s_idx + C[c_idx]) {
| ~~^~~~~~~~~~~~~~~
In file included from /usr/include/c++/10/cassert:44,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:33,
from paint.cpp:2:
paint.cpp:55:29: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
55 | assert(s_idx + C[c_idx] < S.size());
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~
paint.cpp: In function 'std::string solve_puzzle(std::string, std::vector<int>)':
paint.cpp:75:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
75 | for(int i = 0; i < s.size(); i++) {
| ~~^~~~~~~~~~
paint.cpp:80:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
80 | for(int i = 0; i < c.size(); i++) {
| ~~^~~~~~~~~~
paint.cpp:89:15: warning: unused variable 'ok' [-Wunused-variable]
89 | long long ok = recur(0, 0);
| ^~