roz.cpp: In function 'void build(char, char)':
roz.cpp:35:20: warning: array subscript has type 'char' [-Wchar-subscripts]
35 | while (i < idx[a].size() && j < idx[b].size())
| ^
roz.cpp:35: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]
35 | while (i < idx[a].size() && j < idx[b].size())
| ~~^~~~~~~~~~~~~~~
roz.cpp:35:41: warning: array subscript has type 'char' [-Wchar-subscripts]
35 | while (i < idx[a].size() && j < idx[b].size())
| ^
roz.cpp:35: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]
35 | while (i < idx[a].size() && j < idx[b].size())
| ~~^~~~~~~~~~~~~~~
roz.cpp:37:17: warning: array subscript has type 'char' [-Wchar-subscripts]
37 | if (idx[a][i] < idx[b][j])
| ^
roz.cpp:37:29: warning: array subscript has type 'char' [-Wchar-subscripts]
37 | if (idx[a][i] < idx[b][j])
| ^
roz.cpp:48:20: warning: array subscript has type 'char' [-Wchar-subscripts]
48 | while (i < idx[a].size())
| ^
roz.cpp:48: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]
48 | while (i < idx[a].size())
| ~~^~~~~~~~~~~~~~~
roz.cpp:53:20: warning: array subscript has type 'char' [-Wchar-subscripts]
53 | while (j < idx[b].size())
| ^
roz.cpp:53: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]
53 | while (j < idx[b].size())
| ~~^~~~~~~~~~~~~~~
roz.cpp: In function 'int main()':
roz.cpp:65: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]
65 | for (int i = 0; i < s.size(); i++)
| ~~^~~~~~~~~~
roz.cpp:67:17: warning: array subscript has type 'char' [-Wchar-subscripts]
67 | idx[s[i]].push_back(i);
| ^
roz.cpp:72:18: warning: array subscript has type 'char' [-Wchar-subscripts]
72 | if (!idx[a].size())
| ^
roz.cpp:76:32: warning: array subscript has type 'char' [-Wchar-subscripts]
76 | if (a == b || !idx[b].size())
| ^
roz.cpp:83: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]
83 | for (int i = 0; i < v.size(); i++)
| ~~^~~~~~~~~~