ho_t2.cpp: In function 'bool is_possible()':
ho_t2.cpp:14:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
14 | for (int j = 0; j < s.size(); j++) {
| ~~^~~~~~~~~~
ho_t2.cpp: In function 'int first_max(int)':
ho_t2.cpp:34:20: warning: array subscript has type 'char' [-Wchar-subscripts]
34 | while (pos[chars[i]][j] < start && j < pos[chars[i]].size()) j++;
| ~~~~~~~^
ho_t2.cpp:34:52: warning: array subscript has type 'char' [-Wchar-subscripts]
34 | while (pos[chars[i]][j] < start && j < pos[chars[i]].size()) j++;
| ~~~~~~~^
ho_t2.cpp:34:39: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
34 | while (pos[chars[i]][j] < start && j < pos[chars[i]].size()) j++;
| ~~^~~~~~~~~~~~~~~~~~~~~~
ho_t2.cpp:35:20: warning: array subscript has type 'char' [-Wchar-subscripts]
35 | return pos[chars[i]][j];
| ~~~~~~~^
ho_t2.cpp: In function 'int last_min(int)':
ho_t2.cpp:39:21: warning: array subscript has type 'char' [-Wchar-subscripts]
39 | int j = pos[chars[i]].size()-1;
| ~~~~~~~^
ho_t2.cpp:40:20: warning: array subscript has type 'char' [-Wchar-subscripts]
40 | while (pos[chars[i]][j] > end && j > 0) j--;
| ~~~~~~~^
ho_t2.cpp:41:20: warning: array subscript has type 'char' [-Wchar-subscripts]
41 | return pos[chars[i]][j];
| ~~~~~~~^
ho_t2.cpp: In function 'int main()':
ho_t2.cpp:54:43: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
54 | for (start = 0; s[start] != 'J' && start < s.size(); start++);
| ~~~~~~^~~~~~~~~~