roz.cpp: In function 'void build(char, char)':
roz.cpp:10:18: warning: array subscript has type 'char' [-Wchar-subscripts]
10 | while (i < p[a].size() && j < p[b].size())
| ^
roz.cpp:10:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
10 | while (i < p[a].size() && j < p[b].size())
| ~~^~~~~~~~~~~~~
roz.cpp:10:37: warning: array subscript has type 'char' [-Wchar-subscripts]
10 | while (i < p[a].size() && j < p[b].size())
| ^
roz.cpp:10:33: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
10 | while (i < p[a].size() && j < p[b].size())
| ~~^~~~~~~~~~~~~
roz.cpp:12:15: warning: array subscript has type 'char' [-Wchar-subscripts]
12 | if (p[a][i] < p[b][j])
| ^
roz.cpp:12:25: warning: array subscript has type 'char' [-Wchar-subscripts]
12 | if (p[a][i] < p[b][j])
| ^
roz.cpp:23:18: warning: array subscript has type 'char' [-Wchar-subscripts]
23 | while (i < p[a].size())
| ^
roz.cpp:23:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
23 | while (i < p[a].size())
| ~~^~~~~~~~~~~~~
roz.cpp:28:18: warning: array subscript has type 'char' [-Wchar-subscripts]
28 | while (j < p[b].size())
| ^
roz.cpp:28:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
28 | while (j < p[b].size())
| ~~^~~~~~~~~~~~~
roz.cpp: In function 'int main()':
roz.cpp:40:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
40 | for (int i = 0; i < s.size(); ++i)
| ~~^~~~~~~~~~
roz.cpp:42:15: warning: array subscript has type 'char' [-Wchar-subscripts]
42 | p[s[i]].push_back(i);
| ^
roz.cpp:46:16: warning: array subscript has type 'char' [-Wchar-subscripts]
46 | if (!p[a].size())
| ^
roz.cpp:52:30: warning: array subscript has type 'char' [-Wchar-subscripts]
52 | if (a == b || !p[b].size())
| ^
roz.cpp:57:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
57 | for (int i = 1; i <= v.size(); ++i)
| ~~^~~~~~~~~~~
roz.cpp:63:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
63 | for (int i = 1; i <= v.size(); ++i)
| ~~^~~~~~~~~~~