roz.cpp: In function 'void build(char, char)':
roz.cpp:34:14: warning: array subscript has type 'char' [-Wchar-subscripts]
34 | if (!idx[a].size() || !idx[b].size())
| ^
roz.cpp:34:32: warning: array subscript has type 'char' [-Wchar-subscripts]
34 | if (!idx[a].size() || !idx[b].size())
| ^
roz.cpp:37:20: warning: array subscript has type 'char' [-Wchar-subscripts]
37 | while (i < idx[a].size() && j < idx[b].size())
| ^
roz.cpp:37:14: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
37 | while (i < idx[a].size() && j < idx[b].size())
| ~~^~~~~~~~~~~~~~~
roz.cpp:37:41: warning: array subscript has type 'char' [-Wchar-subscripts]
37 | while (i < idx[a].size() && j < idx[b].size())
| ^
roz.cpp:37:35: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
37 | while (i < idx[a].size() && j < idx[b].size())
| ~~^~~~~~~~~~~~~~~
roz.cpp:39:17: warning: array subscript has type 'char' [-Wchar-subscripts]
39 | if (idx[a][i] < idx[b][j])
| ^
roz.cpp:39:29: warning: array subscript has type 'char' [-Wchar-subscripts]
39 | if (idx[a][i] < idx[b][j])
| ^
roz.cpp:50:20: warning: array subscript has type 'char' [-Wchar-subscripts]
50 | while (i < idx[a].size())
| ^
roz.cpp:50:14: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
50 | while (i < idx[a].size())
| ~~^~~~~~~~~~~~~~~
roz.cpp:55:20: warning: array subscript has type 'char' [-Wchar-subscripts]
55 | while (j < idx[b].size())
| ^
roz.cpp:55:14: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
55 | while (j < idx[b].size())
| ~~^~~~~~~~~~~~~~~
roz.cpp: In function 'int main()':
roz.cpp:67:23: 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]
67 | for (int i = 0; i < s.size(); i++)
| ~~^~~~~~~~~~
roz.cpp:69:17: warning: array subscript has type 'char' [-Wchar-subscripts]
69 | idx[s[i]].push_back(i);
| ^
roz.cpp:82:31: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
82 | for (int i = 0; i < v.size(); i++)
| ~~^~~~~~~~~~